Lince81
Lince81

Reputation: 835

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 check box the postback happens after 5 seconds. How can I do this? tried different methods found online but all incomplete or wrong.

Upvotes: 3

Views: 590

Answers (1)

citronas
citronas

Reputation: 19365

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.

Upvotes: 2

Related Questions