admin管理员组文章数量:1332345
I would like to create a javascript modal pop up window to get some values from a user in a ASP.Net 2.0 webpage.
The basic idea is this. When a user clicks a button, a modal window will e up and ask 3 or 4 questions. The asp page will not be able to be changed while this window is up. Once the questions have been answered I need to grab the values from this window so the asp page has access to them and can handle them in the code behind.
Can I please get some examples on how you would implement this scenario.
I would like to create a javascript modal pop up window to get some values from a user in a ASP.Net 2.0 webpage.
The basic idea is this. When a user clicks a button, a modal window will e up and ask 3 or 4 questions. The asp page will not be able to be changed while this window is up. Once the questions have been answered I need to grab the values from this window so the asp page has access to them and can handle them in the code behind.
Can I please get some examples on how you would implement this scenario.
Share Improve this question asked Oct 17, 2008 at 0:28 Joshua HudsonJoshua Hudson 2,2172 gold badges21 silver badges24 bronze badges3 Answers
Reset to default 5Have you looked at the ModalPopupExtender?
http://www.asp/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx
The easiest methods would be to either use ModalPopupExtender as mentioned by Jon or potentially use jQuery's thickbox or something similar as well.
Otherwise, you could roll your own JS to do it.
You could use the javascript function 'window.showModalDialog', but it only works in Internet Explorer.
You can pass in and return any number of variables by wrapping them up into an object.
本文标签: cAspNet Javascript Modal WindowStack Overflow
版权声明:本文标题:c# - Asp.Net: Javascript Modal Window - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742250185a2440607.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论