asp.net and javascript
<p>I am assigning a value to asp textbox in javascript as follows:</p>

<pre><code>var tempStorytxt = document.getElementById("&lt;%=txtStory.ClientID%&gt;");
tempStorytxt.Value = TempValue;
alert(tempStorytxt.Value);
</code></pre>

<p>but when I access in codebehind as follows there is nothing in txtStory</p>

<pre><code> int StoryId = int.Parse(txtStory.Text);
</code></pre>

<p>Please help me out guys, its very urgent.</p>
