title: How does Viewstate work internally
body: <p><strong>Scratch this!</strong></p>
  
  <p><em>I have googled my ass off looking for this.
  1. Lets say that i have a webform that has a few textboxes, with ID's textbox1, textbox2, textbox3. They all have viewstate enabled.
  I put some values in these textboxes and push a empty postback button and all the values are still there after postback. How can i access them in the viewstate after postback ?
  I would think that they were saved under the ID name of the textboxes but i dont get it to work like so.
      String s = ViewState["textbox1"].ToString();
  I'm trying to get this to work because I want to be able to save the viewstate into the session so i can retrieve the info after i visit another webform.
  2. Isn't it right that i can only use the viewstate on the same page that it was made on ?
  I could not use the viewstate on default.aspx in editor.aspx ?
  3. And one more thing, isnt it right that the viewstate saves how a treeview nodes are expended ? I would like save the state on the treeview between two webforms that use the same masterpage.</em></p>
  
  <hr>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Ok, this wasn't clear enough, thats a given.
  Basicly i'm trying to understand the viewstate and what i can do with it.
  I dont usually use viewstate to store values.</p>
  
  <p>What i'm trying to do, or figure out if its possible with viewstate.</p>
  
  <p>I have a masterpage and on the masterpage is a treeview. I have two pages that i use with the masterpage, Default.aspx and editor.aspx.
  I do my navigations and everything in the Default.aspx. When i have expanded the nodes in the treeview and selected one of the treenode, the navigateurl on that treenode send me to editor.aspx?navID=3. The editor.aspx uses the same masterpage and i want that page to show the SAME state on the treeview as the Default.aspx did before i clicked on the node.</p>