jquery 简单模态 + ASP.NET

发布于 2024-08-07 15:43:02 字数 88 浏览 1 评论 0原文

当链接按钮单击事件被触发时,我有一个带有文本框和链接按钮的 jquery 简单模式,并且我尝试在其后面的代码中获取文本框的值是空的

有什么想法吗?

I have a jquery simple modal with a textbox and linkbutton on when the link button click event is fired and I try to get the textbox's value in the code behind it is empty

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨后彩虹 2024-08-14 15:43:02

您应该确保模式窗口附加在表单标记而不是正文标记内。

http://www.ericmmartin.com/projects/simplemodal/#options

  • appendTo [字符串:'body']

要附加元素的 jQuery 选择器。对于 ASP.NET,请使用“表单”。

You should make sure that the modal window is appending inside form tag instead of the body tag.

http://www.ericmmartin.com/projects/simplemodal/#options

  • appendTo [String:'body']

The jQuery selector to append the elements to. For ASP.NET, use 'form'.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文