简体   繁体   中英

Textbox textChanged event withount enabling postback

I have webpage with many textboxes. I want to call a function (CalcBalance) on TextBox_TextChanged event. This works well with textbox's Postback set to true, but this makes the app not to be user friendly because when the user scrolls down to use other textboxes, the "postback" keeps taking the user to the top of the page. ie the user will have to scroll down after changing the text in any textbox.

Is there any way I can call this function without enabling postback?

Thanks to Tim Schmelter. The easiest way was to put this line: MaintainScrollPositionOnPostBack = "true" in the function (CalcBalance).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM