In Ajax when we use modal popup if you click on OK button there should not be postback
Any code related to modal popup to stablise is necessary..........and if the values are enter correctly then modal popup should get post back.................开发者_运维技巧....
Please have the code in .Net
I ran into this as well. Assuming you are launching the dialogue via a button, and wiring up the button like this:
$("#buttonID") .click(function() { $("#dialog-vendorcontact").dialog("open"); }
On some browsers, clicking the button will launch the dialogue, but immediately submit the form. The fix is easy, add "return false" to the button on click event:
<button id="buttonID" onclick="return false;"> Show my Diaglogue </button>
P
精彩评论