Pass back 3 values from Popup window in ASP.Net

Rattlesnake

Freshman
Joined
Dec 23, 2003
Messages
47
Hi,
I have a ASPX form ,which is basically a data entry form. User has to enter details about a news item.
One field of the form requires the user to select a company name.
I cannot use a Dropdownlist for this field because I want to display more than one field (company name , Country,City).

What I thought , was to have a button next to the Company field which when clicked opens a Popup window that displays all the companies (with Country and City) in a datagrid. When User selects the Company name , it pass back the Company name,Country and City back to the parent form and close the pop-up form.
I know how to open the pop-up form.
But how do I return the three values and close the form when user selects something in the datagrid?

Thanks
 
Why can't you display everything in your dropdown list? As long as the associated data is in the same database table record you can concatenate the data together and use the new text string to populate the dropdown list.
 
Back
Top