Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Popup Windows and Asp.Net Control

0 views
Skip to first unread message

KA Kueh

unread,
May 8, 2003, 6:29:36 AM5/8/03
to
Dear all,

I have this problem with programatically setting .net drop down list
control on a page. How is it possible for me from a popup window
select an item and set to drop down list on the parent page. As an
example.

I have a drop down list loaded from a table from the aspx page (the
description of the location) and as second drop down list that lists
the asset of the location selected from the first drop down list. A
third is a button where the user (popup a search window) can click to
search for the asset. Once found the user can select on the asset and
I want to set the first drop down list and second drop down list.
FYI, the asset list is linked to the location list via the location id
key.

Table schema

create table location (locid int, locDesc varchar(64));
create table asset (assetid int, locid int, assetDesc varchar(64));

Any suggestion or workaround is highly appreciated. Thanks.

Regards,
Kueh

Craig Deelsnyder [MVP]

unread,
May 10, 2003, 10:44:15 PM5/10/03
to
I think you can use this concept and apply it a little differently?

http://aspalliance.com/colt/articles/article4.aspx

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Natty Gur

unread,
May 11, 2003, 12:09:03 AM5/11/03
to

Hi,
You can use the window.OpenModalDialog to open the dialog window and to
return the selected value to the calling page. When you have the
selected value you can use DHTML to select the correspond value in the
Listbox on the main window:
//calling page
1)RetVal = Window.OpenDialogWindow("search_window.aspx");
2)use the RetVal to select option in the Select control

//search page
when the user close the window
Window.returnValue = SearchList.options[SearchList.SelectedIndex].value;

Alternatively you can embed javascript in the button click to open the
modal dialog and return the value as a parameter to server side event.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

0 new messages