How to avoid a postback in JavaScript?
asp.net, javascript
Solution
Adding "return false;" to the onclick attribute of the button will prevent the automatic postback.
Problem
I have an ASP.NET page which has a button it it. The button click launches a modal dialog box using JavaScript. Based on the value returned by the modal dialog box, I want to proceed with, or cancel the post back that happens. How do I do this?