Click here to Skip to main content
12,881,824 members (28,816 online)
Rate this:
Please Sign up or sign in to vote.

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!!!

Posted 19-Aug-12 19:48pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Try This :
but this is not done using the Ajax but fulfill ur Requirement.
 ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", ""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.
ernestmachado 20-Aug-12 2:11am
Thanks for the prompt reply. Will try it.
Is is possible to use ajax tool kit for this?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


Here are some good options,

Free for Non-Commercial : Highslide[^]

JQuery for dialog box[^]

You can also use Modelpopup control from ajax control toolkit.

-Amit Gajjar
ernestmachado 20-Aug-12 2:56am
Thanks for the links...
@amitgajjar 20-Aug-12 3:04am
your welcome.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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[^]
ernestmachado 22-Aug-12 4:37am
I think this is the good option....

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170422.1 | Last Updated 22 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100