c# - Asp.Net: Javascript Modal Window - Stack Overflow

I would like to create a javascript modal pop up window to get some values from a user in a ASP.Net 2.0

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 badges
Add a ment  | 

3 Answers 3

Reset to default 5

Have 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742250185a4408998.html

相关推荐

  • c# - Asp.Net: Javascript Modal Window - Stack Overflow

    I would like to create a javascript modal pop up window to get some values from a user in a ASP.Net 2.0

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信