Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

when I tried to navigate from one web page to another throuhg on click of a button I am not able to retain the previous page values insted I am getting an HTTP error as follows. Pls help,

 

[HttpException (0x80004005): The View State is invalid for this page and might be corrupted.]

System.Web.UI.Page.LoadPageStateFromPersistenceMedium()

System.Web.UI.Page.LoadPageViewState()

System.Web.UI.Page.ProcessRequestMain()

Posted

Hai

Just change the current page VIEWSTATE name then it will work

 

ex:

<script language ="Javascript">

<!--

function chpost(eval1)

{

document.Form1.action=eval1;

document.Form1.__VIEWSTATE.name='NOVIEWSTATE';

}

-->

</script>

 

eval1 = called page (second.aspx)

 

Got it,Let me know

 

Cheena

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...