开发者

How can I delay checkbox postback?

开发者 https://www.devze.com 2023-01-17 13:43 出处:网络
I have an ASP.NET page with JavaScript. I have some checkboxes and I want to give the user time to check and uncheck more then one box before the postback... so when the user tick/untick a chec开发者_

I have an ASP.NET page with JavaScript. I have some checkboxes and I want to give the user time to check and uncheck more then one box before the postback... so when the user tick/untick a chec开发者_运维问答k box the postback happens after 5 seconds. How can I do this? tried different methods found online but all incomplete or wrong.


Set the AutoPostBack property of the checkboxes to false. Use a button that performs the Postback for you (e.g. call that the 'Save changes' button)

That gives you all the flexibility you need. You may even insert a JavaScript that performs the ButtonClick automatically after xx seconds.

0

精彩评论

暂无评论...
验证码 换一张
取 消