Question : How do I force an autopostback from a textbox in asp.net after each keystroke

I want to run some code and then update an update panel each time a value is entered into a textbox without having to move the focus from the textbox.
The autocomplete extender seems to deliver some instant functionality but is overkill for what I want as I do not want to call a web service or generate a drop down list. I want to force a recalculation and change the contents in a different control.

Please provide code in vb.net.

Answer : How do I force an autopostback from a textbox in asp.net after each keystroke

with keycode for 5 key, which is 53



-----------------aspx file---------------------------  add this to the body


   
         />
   

   
       
   



Text:
-------------------aspx.vb file-----------------------------
 
--- In page load...
if  Not IsPostBack Then
   txtbox.Attributes.Add("onKeyPress", "doClick('" + btnCalculation.ClientID + "',event)")

End If

_____________________________________________________________________________

---in aspx  --look up '5' key and place key code in there...this looks for enter...

Random Solutions  
 
programming4us programming4us