472,808 Members | 4,049 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,808 software developers and data experts.

Invalid ViewState Error after Multiple PostBacks

I am receiving an Invalid ViewState error after posting back to the same page
twice. Consistently the error occurs after the second postback and not after
the first.

I have looked into creating a static machinekey in the machine.config and
that did not help. I believe that issue only occurred when there was an
inconsistent viewstate error. The error I am faced with consistently occurs.

Are there any known problems with the ViewState when posting back to the
same page multiple times? Any help would be much appreciated.
Nov 19 '05 #1
9 4832
Jamie,

What's the exact error being returned?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
I am receiving an Invalid ViewState error after posting back to the same
page
twice. Consistently the error occurs after the second postback and not
after
the first.

I have looked into creating a static machinekey in the machine.config and
that did not help. I believe that issue only occurred when there was an
inconsistent viewstate error. The error I am faced with consistently
occurs.

Are there any known problems with the ViewState when posting back to the
same page multiple times? Any help would be much appreciated.

Nov 19 '05 #2
Justin,

See below...

Exception Details: System.Web.HttpException: The viewstate is invalid for
this page and might be corrupted.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +139
System.Web.UI.Page.LoadPageViewState() +17
System.Web.UI.Page.ProcessRequestMain() +423


"S. Justin Gengo" wrote:
Jamie,

What's the exact error being returned?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
I am receiving an Invalid ViewState error after posting back to the same
page
twice. Consistently the error occurs after the second postback and not
after
the first.

I have looked into creating a static machinekey in the machine.config and
that did not help. I believe that issue only occurred when there was an
inconsistent viewstate error. The error I am faced with consistently
occurs.

Are there any known problems with the ViewState when posting back to the
same page multiple times? Any help would be much appreciated.


Nov 19 '05 #3
Jamie,

See if this helps...

http://www.extremeexperts.com/Net/FA...isCorrupt.aspx

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
Justin,

See below...

Exception Details: System.Web.HttpException: The viewstate is invalid for
this page and might be corrupted.

Source Error:

An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +139
System.Web.UI.Page.LoadPageViewState() +17
System.Web.UI.Page.ProcessRequestMain() +423


"S. Justin Gengo" wrote:
Jamie,

What's the exact error being returned?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
>I am receiving an Invalid ViewState error after posting back to the same
>page
> twice. Consistently the error occurs after the second postback and not
> after
> the first.
>
> I have looked into creating a static machinekey in the machine.config
> and
> that did not help. I believe that issue only occurred when there was
> an
> inconsistent viewstate error. The error I am faced with consistently
> occurs.
>
> Are there any known problems with the ViewState when posting back to
> the
> same page multiple times? Any help would be much appreciated.


Nov 19 '05 #4
Unfortunately I have already tried setting the EnableViewStateMac attribute =
"false" and it did not fix the issue. Also, I am not using Server.Transfer
on the page.

"S. Justin Gengo" wrote:
Jamie,

See if this helps...

http://www.extremeexperts.com/Net/FA...isCorrupt.aspx

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
Justin,

See below...

Exception Details: System.Web.HttpException: The viewstate is invalid for
this page and might be corrupted.

Source Error:

An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +139
System.Web.UI.Page.LoadPageViewState() +17
System.Web.UI.Page.ProcessRequestMain() +423


"S. Justin Gengo" wrote:
Jamie,

What's the exact error being returned?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
>I am receiving an Invalid ViewState error after posting back to the same
>page
> twice. Consistently the error occurs after the second postback and not
> after
> the first.
>
> I have looked into creating a static machinekey in the machine.config
> and
> that did not help. I believe that issue only occurred when there was
> an
> inconsistent viewstate error. The error I am faced with consistently
> occurs.
>
> Are there any known problems with the ViewState when posting back to
> the
> same page multiple times? Any help would be much appreciated.


Nov 19 '05 #5
Jamie,

Is it possible for you to post the code or at least the parts of it or an
example that you deem relevant? It's going to be almost impossible to figure
out what's going on without seeing an example.

Thanks,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Unfortunately I have already tried setting the EnableViewStateMac
attribute =
"false" and it did not fix the issue. Also, I am not using
Server.Transfer
on the page.

"S. Justin Gengo" wrote:
Jamie,

See if this helps...

http://www.extremeexperts.com/Net/FA...isCorrupt.aspx

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
> Justin,
>
> See below...
>
> Exception Details: System.Web.HttpException: The viewstate is invalid
> for
> this page and might be corrupted.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the
> current
> web
> request. Information regarding the origin and location of the exception
> can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
> [HttpException (0x80004005): The viewstate is invalid for this page and
> might be corrupted.]
> System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +139
> System.Web.UI.Page.LoadPageViewState() +17
> System.Web.UI.Page.ProcessRequestMain() +423
>
>
>
>
> "S. Justin Gengo" wrote:
>
>> Jamie,
>>
>> What's the exact error being returned?
>>
>> --
>> Sincerely,
>>
>> S. Justin Gengo, MCP
>> Web Developer / Programmer
>>
>> www.aboutfortunate.com
>>
>> "Out of chaos comes order."
>> Nietzsche
>> "Jamie" <Ja***@discussions.microsoft.com> wrote in message
>> news:51**********************************@microsof t.com...
>> >I am receiving an Invalid ViewState error after posting back to the
>> >same
>> >page
>> > twice. Consistently the error occurs after the second postback and
>> > not
>> > after
>> > the first.
>> >
>> > I have looked into creating a static machinekey in the
>> > machine.config
>> > and
>> > that did not help. I believe that issue only occurred when there
>> > was
>> > an
>> > inconsistent viewstate error. The error I am faced with
>> > consistently
>> > occurs.
>> >
>> > Are there any known problems with the ViewState when posting back to
>> > the
>> > same page multiple times? Any help would be much appreciated.
>>
>>
>>


Nov 19 '05 #6
Jamie wrote:
Justin,

See below...

Exception Details: System.Web.HttpException: The viewstate is invalid
for this page and might be corrupted.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The viewstate is invalid for this page
and might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +139
System.Web.UI.Page.LoadPageViewState() +17
System.Web.UI.Page.ProcessRequestMain() +423


If you do a View / Source on the error page, you'll get a more complete
stack trace in the HTML comment at the bottom of the page.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #7
I stripped the code down a little but here it is... There are two classes: 1
regular aspx page "Class1.aspx" and another web control "WebControl.cs" that
is implemented by Class1. Class1 passes several values to WebControl.cs via
the ViewState which also gets changed during the rendering process.

public class Class1 : System.Web.UI.Page
{
protected Controls.WebControl WebCtl;
protected System.Web.UI.WebControls.Repeater ceParamRep;
protected System.Web.UI.HtmlControls.HtmlForm frmDefault;
protected System.Web.UI.WebControls.Label headerlabel;

private void Page_Load(object sender, System.EventArgs e)
{
string passedItem;
WebControl.PassedItem = passedItem;
}
}

public class WebControl : System.Web.UI.WebControls.WebControl,
System.Web.UI.IPostBackDataHandler
{
[Bindable(true),
Category("Item"),
DefaultValue("")]
public string PassedItem
{
get
{
object obj = ViewState["passedItem"];
return (obj == null) ? String.Empty : (string)obj;
}
set
{
ViewState["passedItem"] = value;
}
}

protected override void Render(HtmlTextWriter output)
{
if (Page != null)
{
output.Write(this.PassedItem);
}
}

bool IPostBackDataHandler.LoadPostData(string postDataKey,
NameValueCollection postCollection)
{
bool change = false;
string ssvalue = postCollection[this.SSHelper];
if (ssvalue != null)
{
if(String.Compare(ssvalue,this.PassedItem.ToString (),true) != 0)
{
this.PassedItem = ssvalue;
// If there is a change, raise a change event.
change = true;
}
}
string modevalue = postCollection[this.ModeHelper];
if (modevalue !=null)
{
if(String.Compare(modevalue,this.Mode.ToString(),t rue) != 0)
{
this.Mode = modevalue;
change = true;
}
}
return change;
}

void IPostBackDataHandler.RaisePostDataChangedEvent()
{
// There was a change, so raise any events.
if (ConfigurationChanged != null)
{
ConfigurationChanged(this, EventArgs.Empty);
}
}

"S. Justin Gengo" wrote:
Jamie,

Is it possible for you to post the code or at least the parts of it or an
example that you deem relevant? It's going to be almost impossible to figure
out what's going on without seeing an example.

Thanks,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Unfortunately I have already tried setting the EnableViewStateMac
attribute =
"false" and it did not fix the issue. Also, I am not using
Server.Transfer
on the page.

"S. Justin Gengo" wrote:
Jamie,

See if this helps...

http://www.extremeexperts.com/Net/FA...isCorrupt.aspx

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
> Justin,
>
> See below...
>
> Exception Details: System.Web.HttpException: The viewstate is invalid
> for
> this page and might be corrupted.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the
> current
> web
> request. Information regarding the origin and location of the exception
> can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
> [HttpException (0x80004005): The viewstate is invalid for this page and
> might be corrupted.]
> System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +139
> System.Web.UI.Page.LoadPageViewState() +17
> System.Web.UI.Page.ProcessRequestMain() +423
>
>
>
>
> "S. Justin Gengo" wrote:
>
>> Jamie,
>>
>> What's the exact error being returned?
>>
>> --
>> Sincerely,
>>
>> S. Justin Gengo, MCP
>> Web Developer / Programmer
>>
>> www.aboutfortunate.com
>>
>> "Out of chaos comes order."
>> Nietzsche
>> "Jamie" <Ja***@discussions.microsoft.com> wrote in message
>> news:51**********************************@microsof t.com...
>> >I am receiving an Invalid ViewState error after posting back to the
>> >same
>> >page
>> > twice. Consistently the error occurs after the second postback and
>> > not
>> > after
>> > the first.
>> >
>> > I have looked into creating a static machinekey in the
>> > machine.config
>> > and
>> > that did not help. I believe that issue only occurred when there
>> > was
>> > an
>> > inconsistent viewstate error. The error I am faced with
>> > consistently
>> > occurs.
>> >
>> > Are there any known problems with the ViewState when posting back to
>> > the
>> > same page multiple times? Any help would be much appreciated.
>>
>>
>>


Nov 19 '05 #8
focus on this article
http://support.microsoft.com/default...b;en-us;555353

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
I stripped the code down a little but here it is... There are two classes: 1 regular aspx page "Class1.aspx" and another web control "WebControl.cs" that is implemented by Class1. Class1 passes several values to WebControl.cs via the ViewState which also gets changed during the rendering process.

public class Class1 : System.Web.UI.Page
{
protected Controls.WebControl WebCtl;
protected System.Web.UI.WebControls.Repeater ceParamRep;
protected System.Web.UI.HtmlControls.HtmlForm frmDefault;
protected System.Web.UI.WebControls.Label headerlabel;

private void Page_Load(object sender, System.EventArgs e)
{
string passedItem;
WebControl.PassedItem = passedItem;
}
}

public class WebControl : System.Web.UI.WebControls.WebControl,
System.Web.UI.IPostBackDataHandler
{
[Bindable(true),
Category("Item"),
DefaultValue("")]
public string PassedItem
{
get
{
object obj = ViewState["passedItem"];
return (obj == null) ? String.Empty : (string)obj;
}
set
{
ViewState["passedItem"] = value;
}
}

protected override void Render(HtmlTextWriter output)
{
if (Page != null)
{
output.Write(this.PassedItem);
}
}

bool IPostBackDataHandler.LoadPostData(string postDataKey,
NameValueCollection postCollection)
{
bool change = false;
string ssvalue = postCollection[this.SSHelper];
if (ssvalue != null)
{
if(String.Compare(ssvalue,this.PassedItem.ToString (),true) != 0)
{
this.PassedItem = ssvalue;
// If there is a change, raise a change event.
change = true;
}
}
string modevalue = postCollection[this.ModeHelper];
if (modevalue !=null)
{
if(String.Compare(modevalue,this.Mode.ToString(),t rue) != 0)
{
this.Mode = modevalue;
change = true;
}
}
return change;
}

void IPostBackDataHandler.RaisePostDataChangedEvent()
{
// There was a change, so raise any events.
if (ConfigurationChanged != null)
{
ConfigurationChanged(this, EventArgs.Empty);
}
}

"S. Justin Gengo" wrote:
Jamie,

Is it possible for you to post the code or at least the parts of it or an example that you deem relevant? It's going to be almost impossible to figure out what's going on without seeing an example.

Thanks,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Unfortunately I have already tried setting the EnableViewStateMac
attribute =
"false" and it did not fix the issue. Also, I am not using
Server.Transfer
on the page.

"S. Justin Gengo" wrote:

> Jamie,
>
> See if this helps...
>
> http://www.extremeexperts.com/Net/FA...isCorrupt.aspx
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
> "Jamie" <Ja***@discussions.microsoft.com> wrote in message
> news:44**********************************@microsof t.com...
> > Justin,
> >
> > See below...
> >
> > Exception Details: System.Web.HttpException: The viewstate is invalid> > for
> > this page and might be corrupted.
> >
> > Source Error:
> >
> > An unhandled exception was generated during the execution of the
> > current
> > web
> > request. Information regarding the origin and location of the exception> > can
> > be identified using the exception stack trace below.
> >
> > Stack Trace:
> >
> > [HttpException (0x80004005): The viewstate is invalid for this page and> > might be corrupted.]
> > System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +139
> > System.Web.UI.Page.LoadPageViewState() +17
> > System.Web.UI.Page.ProcessRequestMain() +423
> >
> >
> >
> >
> > "S. Justin Gengo" wrote:
> >
> >> Jamie,
> >>
> >> What's the exact error being returned?
> >>
> >> --
> >> Sincerely,
> >>
> >> S. Justin Gengo, MCP
> >> Web Developer / Programmer
> >>
> >> www.aboutfortunate.com
> >>
> >> "Out of chaos comes order."
> >> Nietzsche
> >> "Jamie" <Ja***@discussions.microsoft.com> wrote in message
> >> news:51**********************************@microsof t.com...
> >> >I am receiving an Invalid ViewState error after posting back to the> >> >same
> >> >page
> >> > twice. Consistently the error occurs after the second postback and> >> > not
> >> > after
> >> > the first.
> >> >
> >> > I have looked into creating a static machinekey in the
> >> > machine.config
> >> > and
> >> > that did not help. I believe that issue only occurred when there> >> > was
> >> > an
> >> > inconsistent viewstate error. The error I am faced with
> >> > consistently
> >> > occurs.
> >> >
> >> > Are there any known problems with the ViewState when posting back to> >> > the
> >> > same page multiple times? Any help would be much appreciated.
> >>
> >>
> >>
>
>
>


Nov 19 '05 #9
Alvin,

I had seen this article and tried some of the suggestions such as using a
static machinekey, but that did not work. Also, the error is not
intermittent as it always occurs after the second postback of the page. I am
running this on a local IIS server which does have virus protection although
I don't think this would be an issue since the postback works fine the first
time.

Is there anything related to viewstate and multiple postbacks where I have
to issue some type of clear statement to the page? The only solution I can
think of is to eliminate the use of ViewState altogether.

"Alvin Bruney - ASP.NET MVP" wrote:
focus on this article
http://support.microsoft.com/default...b;en-us;555353

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com...
I stripped the code down a little but here it is... There are two

classes: 1
regular aspx page "Class1.aspx" and another web control "WebControl.cs"

that
is implemented by Class1. Class1 passes several values to WebControl.cs

via
the ViewState which also gets changed during the rendering process.

public class Class1 : System.Web.UI.Page
{
protected Controls.WebControl WebCtl;
protected System.Web.UI.WebControls.Repeater ceParamRep;
protected System.Web.UI.HtmlControls.HtmlForm frmDefault;
protected System.Web.UI.WebControls.Label headerlabel;

private void Page_Load(object sender, System.EventArgs e)
{
string passedItem;
WebControl.PassedItem = passedItem;
}
}

public class WebControl : System.Web.UI.WebControls.WebControl,
System.Web.UI.IPostBackDataHandler
{
[Bindable(true),
Category("Item"),
DefaultValue("")]
public string PassedItem
{
get
{
object obj = ViewState["passedItem"];
return (obj == null) ? String.Empty : (string)obj;
}
set
{
ViewState["passedItem"] = value;
}
}

protected override void Render(HtmlTextWriter output)
{
if (Page != null)
{
output.Write(this.PassedItem);
}
}

bool IPostBackDataHandler.LoadPostData(string postDataKey,
NameValueCollection postCollection)
{
bool change = false;
string ssvalue = postCollection[this.SSHelper];
if (ssvalue != null)
{
if(String.Compare(ssvalue,this.PassedItem.ToString (),true) != 0)
{
this.PassedItem = ssvalue;
// If there is a change, raise a change event.
change = true;
}
}
string modevalue = postCollection[this.ModeHelper];
if (modevalue !=null)
{
if(String.Compare(modevalue,this.Mode.ToString(),t rue) != 0)
{
this.Mode = modevalue;
change = true;
}
}
return change;
}

void IPostBackDataHandler.RaisePostDataChangedEvent()
{
// There was a change, so raise any events.
if (ConfigurationChanged != null)
{
ConfigurationChanged(this, EventArgs.Empty);
}
}

"S. Justin Gengo" wrote:
Jamie,

Is it possible for you to post the code or at least the parts of it or an example that you deem relevant? It's going to be almost impossible to figure out what's going on without seeing an example.

Thanks,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jamie" <Ja***@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
> Unfortunately I have already tried setting the EnableViewStateMac
> attribute =
> "false" and it did not fix the issue. Also, I am not using
> Server.Transfer
> on the page.
>
> "S. Justin Gengo" wrote:
>
>> Jamie,
>>
>> See if this helps...
>>
>> http://www.extremeexperts.com/Net/FA...isCorrupt.aspx
>>
>> --
>> Sincerely,
>>
>> S. Justin Gengo, MCP
>> Web Developer / Programmer
>>
>> www.aboutfortunate.com
>>
>> "Out of chaos comes order."
>> Nietzsche
>> "Jamie" <Ja***@discussions.microsoft.com> wrote in message
>> news:44**********************************@microsof t.com...
>> > Justin,
>> >
>> > See below...
>> >
>> > Exception Details: System.Web.HttpException: The viewstate is invalid >> > for
>> > this page and might be corrupted.
>> >
>> > Source Error:
>> >
>> > An unhandled exception was generated during the execution of the
>> > current
>> > web
>> > request. Information regarding the origin and location of the exception >> > can
>> > be identified using the exception stack trace below.
>> >
>> > Stack Trace:
>> >
>> > [HttpException (0x80004005): The viewstate is invalid for this page and >> > might be corrupted.]
>> > System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +139
>> > System.Web.UI.Page.LoadPageViewState() +17
>> > System.Web.UI.Page.ProcessRequestMain() +423
>> >
>> >
>> >
>> >
>> > "S. Justin Gengo" wrote:
>> >
>> >> Jamie,
>> >>
>> >> What's the exact error being returned?
>> >>
>> >> --
>> >> Sincerely,
>> >>
>> >> S. Justin Gengo, MCP
>> >> Web Developer / Programmer
>> >>
>> >> www.aboutfortunate.com
>> >>
>> >> "Out of chaos comes order."
>> >> Nietzsche
>> >> "Jamie" <Ja***@discussions.microsoft.com> wrote in message
>> >> news:51**********************************@microsof t.com...
>> >> >I am receiving an Invalid ViewState error after posting back to the >> >> >same
>> >> >page
>> >> > twice. Consistently the error occurs after the second postback and >> >> > not
>> >> > after
>> >> > the first.
>> >> >
>> >> > I have looked into creating a static machinekey in the
>> >> > machine.config
>> >> > and
>> >> > that did not help. I believe that issue only occurred when there >> >> > was
>> >> > an
>> >> > inconsistent viewstate error. The error I am faced with
>> >> > consistently
>> >> > occurs.
>> >> >
>> >> > Are there any known problems with the ViewState when posting back to >> >> > the
>> >> > same page multiple times? Any help would be much appreciated.
>> >>
>> >>
>> >>
>>
>>
>>


Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Trevor Andrew | last post by:
Hi There, I have posted something previously regarding this issue, but I think I have some more concise questions to ask, and would like to get further feedback on this issue. Firstly the...
2
by: Fred Newton | last post by:
Just wondering if there are any strong arguments one way or the other for storing a small value (6 bytes) in the ViewState vs. Session state. The value is needed in only one page in a large ASP.NET...
1
by: Simon | last post by:
Hi everyone, I have a quick question that I hope someone can help me with: I've made a user control that contains a text box and some validation functionality. This control has a few extra...
5
by: danc | last post by:
I keep getting this error. I have scoured the web and could not find any applicable information. It seems to have really started since I upgraded to the 1.1 framework. Any help is appreciated. ...
0
by: Don | last post by:
I need some suggests on how to manage the viewState on my page. I have multiple checkBoxLists that are dynamically created and need then synced up with the viewstate. My problem is that on each...
11
by: Nad | last post by:
Hello, I have a page with two link buttons. When I click on the first one I call server.execute("target.aspx") to view target.aspx on the original page. Then I click on the second link button...
10
by: Lloyd Dupont | last post by:
When you define UserControl in source code the sample I see are often like that: ============ public string Text { get { String s = (String)ViewState; return ((s == null) ? String.Empty : s);...
3
by: Arjen | last post by:
Hi, How do I keep the viewstate small? I think I'm only using it for redirection (String)ViewState. Thanks! Arjen
1
by: Joe Abou Jaoude | last post by:
hi, I just want simply to preserve some data in my usercontrol on postbacks. so I added this property in my UserControl Protected Property MyProperty() As String Get If Not...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.