title: Get value from html input text type textbox as string and pass it to C# hashtable being used in aspx
body: <p>The textbox is defined as html input text type and takes input from the users. This value is needed to pass as key to hashtable defined in aspx.cs file being used in aspx file. But the correct value is not being given and an exception is being thrown. Any help in this regard would be helpful. Thanks</p>
  
  <p>The code is as follows:</p>
  
  <pre><code>    &lt;% =Hashtable[document.getElementbyId("Textbox").Value]%&gt;
  </code></pre>
  
  <p>document.getElementbyId("Textbox").Value is not giving the correct output. If it is replaced by a string value acting as key then it works fine. The only problem is getting the string value from textbox.</p>