Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Workflow Association Form - IsPostBack is always true.

30 views
Skip to first unread message

biz...@newsgroup.nospam

unread,
Nov 15, 2007, 1:15:55 PM11/15/07
to
Hi,
I have a very simple Workflow Association page which works fine except that
the IsPostBack value is always true even the first time the page is hit?
For testing I stripped almost all the code - see below - and the problem
still occurs.
Is this a known bug? Any help would be appreciated.
Thanks,
Nick


public class AssociationForm : LayoutsPageBase
{
protected HtmlInputText helloWorld = new HtmlInputText();
protected void Page_Load(object sender, EventArgs e)
{
if (!this.Page.IsPostBack)
{
}
}

protected void btnSubmit_Click(object sender, EventArgs e)
{
}

protected void btnCancel_Click(object sender, EventArgs e)
{
}
}

Problem still occurs if I inherit directly from the System.Web.UI.Page class


Wei Lu [MSFT]

unread,
Nov 15, 2007, 10:57:55 PM11/15/07
to
Hello bizint,

How you sure that when you first load the page, it postback?

Did you debug the process to confirm it?

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

biz...@newsgroup.nospam

unread,
Nov 16, 2007, 4:18:15 AM11/16/07
to
Yes, I've debugged the page and the first time the page is hit the
IsPostBack value is true instead of false.
I've asked a collegue to replicate the problem and she experienced the same
problem.
Is this a bug?

"Wei Lu [MSFT]" <we...@online.microsoft.com> wrote in message
news:nf95sTAK...@TK2MSFTNGHUB02.phx.gbl...

Wei Lu [MSFT]

unread,
Nov 16, 2007, 5:47:18 AM11/16/07
to
Hello,

I did not found any related known issue in our internal database.

Could you please let me know the detailed steps or the whole code snip so
that I may try to reproduce this on my side?

biz...@newsgroup.nospam

unread,
Nov 16, 2007, 8:07:49 AM11/16/07
to
Hi Wei Lu,
Thank you for responding.
You don't need any code, just create a basic sharepoint workflow with a
workflow association page (if you want it can be completely empty except for
an onLoad event, see the code in my original post), deploy the workflow and
test the IsPostBack property.
These are the steps I took:
1. Create basic sharepoint workflow in visual studio.
2. Add association page (I've only tried with asp.net not infopath)
3. Deploy workflow
4. Attach workflow to sharepoint list (at this point debug the onLoad
Event and test IsPostBack property)

Thanks,
Nick


"Wei Lu [MSFT]" <we...@online.microsoft.com> wrote in message

news:reeKa4D...@TK2MSFTNGHUB02.phx.gbl...

Wei Lu [MSFT]

unread,
Nov 20, 2007, 2:20:38 AM11/20/07
to
Hi ,

How is everything going? Please feel free to let me know if you need any
assistance.

biz...@newsgroup.nospam

unread,
Nov 20, 2007, 5:21:27 AM11/20/07
to
Hi,
I still haven't resolved this, please see my previous post.
Did you manage to replicate the problem?
Thanks,
Nick

"Wei Lu [MSFT]" <we...@online.microsoft.com> wrote in message

news:rtyllX0K...@TK2MSFTNGHUB02.phx.gbl...

Wei Lu [MSFT]

unread,
Nov 21, 2007, 12:04:03 AM11/21/07
to
Hello bizint,

I did not reproduce this issue on my side.

Could you please let me know the whole detailed steps and code sniper to
try to reproduce it?

Wei Lu [MSFT]

unread,
Nov 23, 2007, 2:54:46 AM11/23/07
to
Hi ,

How is everything going? Please feel free to let me know if you need any
assistance.

Sincerely,

raghuagarwal

unread,
Dec 11, 2009, 10:29:59 AM12/11/09
to
Was anyone able to solve this problem?

weil wrote:

Re: Workflow Association Form - IsPostBack is always true.
23-Nov-07

------=_NextPart_0001_046E9733
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi ,

Sincerely,

==================================================

------=_NextPart_0001_046E9733
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi ,
\par
\par How is everything going? Please feel free to let me know if you need any
\par assistance.
\par
\par Sincerely,
\par
\par Wei Lu
\par Microsoft Online Community Support
\par
\par ==================================================
\par
\par When responding to posts, please "Reply to Group" via your newsreader so
\par that others may learn and benefit from your issue.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_046E9733--

Previous Posts In This Thread:

On Thursday, November 15, 2007 1:15 PM
<bizin wrote:

Workflow Association Form - IsPostBack is always true.

On Thursday, November 15, 2007 10:57 PM
weil wrote:

RE: Workflow Association Form - IsPostBack is always true.
------=_NextPart_0001_809A6210
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hello bizint,

How you sure that when you first load the page, it postback?

Did you debug the process to confirm it?

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_809A6210
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hello bizint,
\par
\par How you sure that when you first load the page, it postback?
\par
\par Did you debug the process to confirm it?
\par
\par Sincerely,
\par
\par Wei Lu
\par Microsoft Online Community Support
\par
\par ==================================================
\par
\par When responding to posts, please "Reply to Group" via your newsreader so
\par that others may learn and benefit from your issue.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_809A6210--

On Friday, November 16, 2007 4:18 AM
<bizin wrote:

Yes, I've debugged the page and the first time the page is hit the IsPostBack
Yes, I've debugged the page and the first time the page is hit the
IsPostBack value is true instead of false.
I've asked a collegue to replicate the problem and she experienced the same
problem.
Is this a bug?

"Wei Lu [MSFT]" <we...@online.microsoft.com> wrote in message
news:nf95sTAK...@TK2MSFTNGHUB02.phx.gbl...

On Friday, November 16, 2007 5:47 AM
weil wrote:

Re: Workflow Association Form - IsPostBack is always true.
------=_NextPart_0001_90A7EA2A
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hello,

I did not found any related known issue in our internal database.

Could you please let me know the detailed steps or the whole code snip so
that I may try to reproduce this on my side?

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_90A7EA2A
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hello,
\par
\par I did not found any related known issue in our internal database.
\par
\par Could you please let me know the detailed steps or the whole code snip so that I may try to reproduce this on my side?
\par
\par Sincerely,
\par
\par Wei Lu
\par Microsoft Online Community Support
\par
\par ==================================================
\par
\par When responding to posts, please "Reply to Group" via your newsreader so
\par that others may learn and benefit from your issue.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_90A7EA2A--

On Friday, November 16, 2007 8:07 AM
<bizin wrote:

Hi Wei Lu,Thank you for responding.


Hi Wei Lu,
Thank you for responding.
You don't need any code, just create a basic sharepoint workflow with a
workflow association page (if you want it can be completely empty except for
an onLoad event, see the code in my original post), deploy the workflow and
test the IsPostBack property.
These are the steps I took:
1. Create basic sharepoint workflow in visual studio.
2. Add association page (I've only tried with asp.net not infopath)
3. Deploy workflow
4. Attach workflow to sharepoint list (at this point debug the onLoad
Event and test IsPostBack property)

Thanks,
Nick


"Wei Lu [MSFT]" <we...@online.microsoft.com> wrote in message

news:reeKa4D...@TK2MSFTNGHUB02.phx.gbl...

On Tuesday, November 20, 2007 2:20 AM
weil wrote:

Re: Workflow Association Form - IsPostBack is always true.
------=_NextPart_0001_A48429EA
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi ,

Sincerely,

==================================================

------=_NextPart_0001_A48429EA
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi ,
\par
\par How is everything going? Please feel free to let me know if you need any
\par assistance.
\par
\par Sincerely,
\par
\par Wei Lu
\par Microsoft Online Community Support
\par
\par ==================================================
\par
\par When responding to posts, please "Reply to Group" via your newsreader so
\par that others may learn and benefit from your issue.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_A48429EA--

On Tuesday, November 20, 2007 5:21 AM
<bizin wrote:

Hi,I still haven't resolved this, please see my previous post.
Hi,
I still have not resolved this, please see my previous post.


Did you manage to replicate the problem?
Thanks,
Nick

On Wednesday, November 21, 2007 12:04 AM
weil wrote:

Re: Workflow Association Form - IsPostBack is always true.
------=_NextPart_0001_A92D8E37
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hello bizint,

I did not reproduce this issue on my side.

Could you please let me know the whole detailed steps and code sniper to
try to reproduce it?

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_A92D8E37
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hello bizint,
\par
\par I did not reproduce this issue on my side.
\par
\par Could you please let me know the whole detailed steps and code sniper to try to reproduce it?
\par
\par Sincerely,
\par
\par Wei Lu
\par Microsoft Online Community Support
\par
\par ==================================================
\par
\par When responding to posts, please "Reply to Group" via your newsreader so
\par that others may learn and benefit from your issue.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
------=_NextPart_0001_A92D8E37--

On Friday, November 23, 2007 2:54 AM
weil wrote:

Re: Workflow Association Form - IsPostBack is always true.
------=_NextPart_0001_046E9733
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi ,

Sincerely,

==================================================

------=_NextPart_0001_046E9733
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi ,
\par
\par How is everything going? Please feel free to let me know if you need any
\par assistance.
\par
\par Sincerely,
\par
\par Wei Lu
\par Microsoft Online Community Support
\par
\par ==================================================
\par
\par When responding to posts, please "Reply to Group" via your newsreader so
\par that others may learn and benefit from your issue.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_046E9733--


Submitted via EggHeadCafe - Software Developer Portal of Choice
File Management For No-Touch Deployments
http://www.eggheadcafe.com/tutorials/aspnet/d69b8cb9-00ef-4f71-93ef-ec39c7640d46/file-management-for-noto.aspx

raghuagarwal

unread,
Jan 6, 2010, 1:37:57 AM1/6/10
to
I came across a very cool post on this which could offer solution to not only a problem like this but to many more such issues. Take a look at:-
http://ryanfarley.com/blog/archive/2005/03/11/1886.aspx

Raghu Agarwal wrote:

Was anyone able to solve this problem?

11-Dec-09

Was anyone able to solve this problem?

Previous Posts In This Thread:

Hello bizint,

Sincerely,

==================================================

Hello,

Sincerely,

==================================================

Thanks,
Nick

Hi ,

Sincerely,

==================================================

Hello bizint,

Sincerely,

==================================================

Hi ,

Sincerely,

==================================================

On Friday, December 11, 2009 10:29 AM
Raghu Agarwal wrote:

Was anyone able to solve this problem?
Was anyone able to solve this problem?

Submitted via EggHeadCafe - Software Developer Portal of Choice

Quick Tips on How to Create an XmlElement
http://www.eggheadcafe.com/tutorials/aspnet/78d0def5-b5b2-40c1-a4c9-e0197388178d/quick-tips-on-how-to-crea.aspx

0 new messages