开发者

In Ajax when we use modal popup if you click on OK button there should not be postback

开发者 https://www.devze.com 2023-02-03 19:10 出处:网络
Any code related to modal popup to stablise is necessary..........and if the values are enter correctly then modal popup should get post back.................开发者_运维技巧....

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

0

精彩评论

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

关注公众号