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
http://aspalliance.com/colt/articles/article4.aspx
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
//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!