在ASPX页面中创建子表单/弹出式表单 [英] Creating a Child Form/Pop-Up Form within an ASPX page

查看:93
本文介绍了在ASPX页面中创建子表单/弹出式表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个创建的Web表单,我想使用其中一个按钮启动弹出"表单,而不要将用户重定向到新页面或新标签.我该怎么办?

我的按钮有这个
< asp:按钮ID ="btn_AddDistrict" runat =服务器" Text =添加区域" Visible ="false"/>

我正在尝试找出onclick事件以将其指向.
:confused:

I have a webform that I created, and I would like to use one of the buttons to launch a "pop-up" form and not redirect the user to a new page or tab. How can I do this?

I have this for my button
<asp:Button ID="btn_AddDistrict" runat="server" Text="Add District" Visible="false"/>

I am trying to figure out the onclick event to point this to.
:confused:

推荐答案

对不起,我没有很多时间来回答这个问题,但是我将研究modalPopup. 模版弹出演示.它会在您的网页上弹出一个窗口,您可以在它们工作时将背景变灰.单击完成后,背景变黑,页面看起来与单击按钮之前相同.如果这不是您想要的,则可以隐藏/取消隐藏其中包含表单内容的div.有人单击时,使按钮隐藏/取消隐藏div.

如果这些想法无济于事,请告诉我,我将看看是否可以提供更好的解决方案.祝您好运!
Sorry, I don''t have a lot of time to answer this, but I would look into a modalPopup. Modal Popup Demo. It pops up a window on your web page and you can grey out the background as they work in it. Once they click done it ungreys the background and the page looks as it did before they clicked the button. If that isn''t what you want you could hide/unhide a div with your form contents in it. Have the button hide/unhide the div when someone clicks on it.

If these ideas don''t help please let me know and I will see if I can offer a better solution. Best of luck!


http://www.google.com/#sclient=psy&hl=zh-CN&site=&source=hp&q=jquery+fancy+modal&aq=f& aqi =& aql =& oq =& fp = a020941effff3d10 [
http://www.google.com/#sclient=psy&hl=en&site=&source=hp&q=asp.net+modal+popup&aq=f&aqi=g10&aql=&oq=&fp=a020941effff3d10[^]

http://www.google.com/#sclient=psy&hl=en&site=&source=hp&q=jquery+fancy+modal&aq=f&aqi=&aql=&oq=&fp=a020941effff3d10[^]

I hope the above information will be helpful. If you have more concerns, please let me know.

Enjoy Google


<a href="http://forums.asp.net/t/883647.aspx/1/10?Open+a+popup+window+after+a+button+click">Click for pop-up windows</a><br />

希望对您有所帮助.


这篇关于在ASPX页面中创建子表单/弹出式表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆