How can I delay checkbox postback?
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.
精彩评论