textbox during postback

  • Thread starter Thread starter Hai Nguyen
  • Start date Start date
H

Hai Nguyen

I was wondering that I have a bunch of textboxes. When I leave a textbox by
setting textbox.autopostback and textbox.enableviewstate = true. I would
like to know if asp.net has already provided a tool that can return the ID
of that textbox and also I want to get the new update value of that textbox
to use for another textbox.

Thanks
 
when do you expect the textbox to "postback"?

if you have it postback every key press it will take absolute ages to
process. Every key press would me the page would have to refresh from the
server... This is definately not advised.

to answer your question, simply create a "textchanged" event for each
textbox, and you'll have a function then that gets called when any text box
changes. From here you can change other text boxes accordingly.

hope that helps.

Dan.

I was wondering that I have a bunch of textboxes. When I leave a textbox by
setting textbox.autopostback and textbox.enableviewstate = true. I would
like to know if asp.net has already provided a tool that can return the ID
of that textbox and also I want to get the new update value of that textbox
to use for another textbox.

Thanks
 
Back
Top