我将如何在Asp.Net中的Web应用程序中获取弹出窗口 [英] How Will I Get Popup Window In The Webapplication In Asp.Net
本文介绍了我将如何在Asp.Net中的Web应用程序中获取弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨读者....
现在我正在创建一个网络应用程序,因为我在我设计的注册表单中有面板控件。如果我输入了所有细节然后单击保存按钮然后这些所有细节将出现在一个弹出窗口中。
解决方案
您可以使用通过AjaxControlToolkit提供的ModalPopUpExtender。
http://www.asp。 net / AjaxLibrary / AjaxControlToolkitSampleSite / ModalPopup / ModalPopup.aspx [ ^ ]
或者如果您使用的是Jquery,则可以使用对话框功能。
另一种方法
来自父页面
protected void Button1_Click( object sender,EventArgs e)
{
string s_popScript = <脚本> window.open('PopUp.aspx',null,'width = 950,height = 420,left = 350,top = 250,directories = no,titlebar = no,toolbar = no,location = no状态=无,菜单栏=没有,滚动条=没有,可调整大小=无'); < / script>;
Page.ClientScript.RegisterStartupScript( this .GetType(), controlJSScript,s_popScript, false );
}
hi readers....
now i am creating one web application in that i have panel control in that i designed registration form.if i enterd all details and click save button. then these all details will be appear on one popup window..
解决方案
You can use the ModalPopUpExtender which is available through AjaxControlToolkit.
http://www.asp.net/AjaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx[^]
Or if you are using Jquery, you can use the dialog functionality.
Another Method
From Parent page
protected void Button1_Click(object sender, EventArgs e) { string s_popScript = "<script>window.open('PopUp.aspx', null,'width=950,height=420,left=350,top=250,directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); </script>"; Page.ClientScript.RegisterStartupScript(this.GetType(), "controlJSScript", s_popScript, false); }
这篇关于我将如何在Asp.Net中的Web应用程序中获取弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文