title: Set value of Viewstate from Javascript
body: <p>I am working on asp.net application. Where for a page I have to clear the value of the controls(like textbox and dropdownlist,etc), also i have to remove the value of a ViewState. Initailly i was doing it from codebehind, so o problem was there. But now the problem arise when i tried reset the value of controls using client side , say</p>
  
  <pre><code>document.getElementById('&lt;%= txtTextBox.ClientID %&gt;').value ='';
  </code></pre>
  
  <p>but the problem i am facing is that i cannot set the viewstate value from clientside.
  my i have to clear to viewstate one is a simple variable say ViewState["NameOfUser"],and another one is converting a datatable into viewstate say,</p>
  
  <pre><code>ViewState["dataTable"] = dt;
  </code></pre>
  
  <p>Thanks and regards</p>