View State

Results 1 to 2 of 2

Thread: View State

  1. #1
    Join Date
    Dec 1969

    Default View State

    hi,<BR>i am passing a variable from page1.aspx(has Button control on the form) to page2.aspx.<BR><BR>page1.aspx:-<BR><BR>private void Button1_Click(object sender, System.EventArgs e)<BR> {<BR> string sql="hello";<BR> Context.Items.Add("sql",sql);<BR> Server.Transfer("page2.aspx",true);<BR> }<BR><BR>page2.aspx<BR>private void Page_Load(object sender, System.EventArgs e)<BR> {<BR> <BR> string retval;<BR> retval=(string)Context.Items["sql"];<BR> Response.Write("Display" + retval);<BR> }<BR><BR>If i click the button in gives the error as:-<BR><BR>The View State is invalid for this page and might be corrupted<BR><BR><BR>Can any one tell me what may be the cause of this error.<BR><BR>thanks in advance<BR>bye<BR>ulaga<BR>

  2. #2
    Join Date
    Dec 1969

    Default Google...

    1st link off Google with your error message:<BR><BR>;EN-US;812399<BR><BR> page+and+might+be+corrupted&meta=<BR><BR>HTH.<BR>< BR>Tim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts