Ravanan
February 10th, 2005, 03:56 AM
Iam calling this function via keypress event in a TextBox
<asp:textbox onkeypress="__doPostBack('TextBox1','1');" id="TextBox1" >
function __doPostBack(eventTarget, eventArgument)
{
* var theform;
*** *** theform = document.Form1;
**** *****theform.__EVENTTARGET.value =eventTarget.split("$").join(":");
**** *****theform.__EVENTARGUMENT.value = eventArgument;
**** *****theform.submit();
**** ****
}
This is posting back.
But i want the text in the TextBox to be updated to watever i typed in it , probably a letter added to textbox's text when it is posting back
but the textbox is not updated to watever i typed in it.
Its simply blank.
i need your suggestions
ThankYou
<asp:textbox onkeypress="__doPostBack('TextBox1','1');" id="TextBox1" >
function __doPostBack(eventTarget, eventArgument)
{
* var theform;
*** *** theform = document.Form1;
**** *****theform.__EVENTTARGET.value =eventTarget.split("$").join(":");
**** *****theform.__EVENTARGUMENT.value = eventArgument;
**** *****theform.submit();
**** ****
}
This is posting back.
But i want the text in the TextBox to be updated to watever i typed in it , probably a letter added to textbox's text when it is posting back
but the textbox is not updated to watever i typed in it.
Its simply blank.
i need your suggestions
ThankYou