title: Using ViewState variables
body: <p>I want to use viewstate variable's value which is saved in one page on another page. But while doing so it shows NullReferenceException. I am new to ASP.net. Please Help me out.</p>
  
  <p>in register.aspx</p>
  
  <p><code>ViewState("name")=textbox1.text</code></p>
  
  <p>in success.aspx</p>
  
  <p><code>dim a as string</code></p>
  
  <p><code>a=ViewState("name").toString</code></p>