打开.aspx窗体作为子窗口 [英] Open .aspx form as a subwindow

查看:107
本文介绍了打开.aspx窗体作为子窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!!!

我在用C#编码的网站中有2个aspx(例如EMPLOYEE DTLS和EMPLOYEE ADDRESS)表格.
我需要在EMPLOYEE表单中打开ADDRESS表单作为子窗口.
输入地址详细信息后,它们应出现在EMPLOYEE窗口中.
如何使用ajax/Ajax工具套件/java脚本实现此目标.

最好是,我想探索 Ajax Toolkit Modal Popup.

谢谢!!!

Ernest

Hello!!!

I am having 2 aspx (say EMPLOYEE DTLS & EMPLOYEE ADDRESS) form in my website coded in C#.
I need to open the ADDRESS form in the EMPLOYEE form as a subwindow.
Once the Address details are entered they should appear in the EMPLOYEE window.
How do I achieve this using ajax / Ajax tool kit / java script.

Preferably I want to explore Ajax Toolkit Modal Popup.

Thank You!!!

Ernest

推荐答案

尝试一下:
但这不是使用Ajax完成的,而是满足您的要求.
Try This :
but this is not done using the Ajax but fulfill ur Requirement.
 ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "window.open("Code.aspx", null, ''height=700,width=1000,status=yes,toolbar=no,menubar=no,location=no'');", true);

in Code.aspx write the Code you want to display in !ispostback Event.



Hope this will help you.




这里有一些不错的选择,

免费用于非商业用途:Highslide [ ^ ]

查询对话框" [
Hi,

Here are some good options,

Free for Non-Commercial : Highslide[^]

JQuery for dialog box[^]

You can also use Modelpopup control from ajax control toolkit.

Thanks
-Amit Gajjar


是的,您可以使用ajax ModalPopupExtender控件实现您的要求...无需使用单独的地址格式...按照下面的方法

假设在您的员工表中的以下字段中
Address1-使用带有ajax ModalPopupExtender控件的文本框,因此当焦点位于Address1单独的迷你窗口时,您可以在其中提供数据和单击确定
在Address1字段中显示该窗口的内容...为此,您必须编写javascript的一点点代码
地址2-与地址1类似
城市使用下拉列表或文本框
状态使用下拉列表或文本框
国家使用下拉列表或文本框
邮政编码使用文本框

有关更多详细信息,请单击下面的链接
,以获取更多信息.
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx [a> [ ^ ]
Yes you can achieve your requirement using ajax ModalPopupExtender control...for that no need to user seprate address form...follow bellow approach

Suppose in your employee form below fields are there
Address1-Use Text Box with ajax ModalPopupExtender control so when focus is on Address1 seprate mini window open where you can give data & on ok click
contant of that window display in Address1 field ...for that you have to write little bit code of javascript
Address2-Similar as Address1
City-Use Either Drop Down List or Text Box
State-Use Either Drop Down List or Text Box
Country-Use Either Drop Down List or Text Box
Postcode-Use Text Box

for more detail abt ajax modal popup extendar click on below link

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx[^]


这篇关于打开.aspx窗体作为子窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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