Author: drl | Posted on: 4/5/2010 10:49:13 AM | Views : 234



I'm trying to cause a drop down list box to take on a saved value from the Session.


DropDownList oddl = (DropDownList)Page.Master.FindControl("ddlSystemsMain");
           if (Session["LastSystemUsed"] != null)
              oddl.SelectedIndex = (int) Session["LastSystemUsed"];
Sometimes this performs writing to the selected index and sometimes not. Can you help? I checked oddl with the debugger and it's the right object.
thanks, Dave
 
...

Go to the complete details ...