开发者

how to call a code behind button_click in jquery

I opened a Popup using Jquery dialog it contains all asp.net 开发者_StackOverflow中文版controls [ submit,textbox]

When i click submit on popup no action is performing.....how can i call that action with jQuery

i am beginner..can u explain in detail...if possible with sample code.......


This is because jquery puts the dialog outside the form, and asp.net won't process it if it is outside the form.

When defining your dialog, use parent().appendTo("form") instead, and it will work:

$('#yourPanel').dialog({
  //options
}).parent().appendTo("form");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜