|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
From one form to another..Hi
I have populated a Dropdown from Active Directory as follows On Login.aspx DoorsList.Items.Add(result.Properties("sAMAccountName")(0).ToString) This works fine and is populated correctly but I would like to use the item selected Item in a different form. i.e default.aspx. How can I achieve this, do I need to use session variables or is there a simpler way? Cheers Ed If the seperate control is on the same page then you could just use;
DoorsList.SelectedValue But if you are going to use the selectedvalue across multiple pages in the site than I would suggest putting it in a session variable. Session("DLSelected") = DoorsList.SelectedValue Hope this helps, Jeremy Reid http://blackstaronline.net/hgtit
Image Rollovers with the Hyperlink Control
Server Side Custom Validation not running Converting the time from one timezone to another Programatically Databinding controls within a Repeater My WebControls stopped working GridView ASP.NET 2.0 Question Master Pages session variables Populate dropdown/listbox Passing Values into Formview or DetailsView formview |
|||||||||||||||||||||||