Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted

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.
 
Share this answer
 
v2
Comments
ernestmachado 20-Aug-12 2:11am    
Thanks for the prompt reply. Will try it.
Is is possible to use ajax tool kit for this?
[no name] 20-Aug-12 2:35am    
no you are not use Ajax Toolkit for this.
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
 
Share this answer
 
Comments
ernestmachado 20-Aug-12 2:56am    
Thanks for the links...
AmitGajjar 20-Aug-12 3:04am    
your welcome.
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[^]
 
Share this answer
 
Comments
ernestmachado 22-Aug-12 4:37am    
I think this is the good option....
Thanks!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900