Click here to Skip to main content
12,359,604 members (67,432 online)
Rate this:
 
Please Sign up or sign in to vote.
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 19-Aug-12 19:48pm
Rate this: bad
 
good
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", "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.
  Permalink  
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?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Comments
ernestmachado 20-Aug-12 2:56am
   
Thanks for the links...
@amitgajjar 20-Aug-12 3:04am
   
your welcome.
Rate this: bad
 
good
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

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx[^]
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 22 Aug 2012
Copyright © CodeProject, 1999-2016
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