DropDownList Session

  • Thread starter Thread starter jumblesale
  • Start date Start date
J

jumblesale

Hello,
I have a dropDownList which I have added to a session and am retrieving
to save on server hits.
The problem is that when I pull the dropdownlist out of the session, it
does so, but displays nothing on the screen.
I am doing so like this:
ddlExam = (DropDownList)Session["ddlExam"];

Any ideas? I've seen a similar question re: caching a dropdownlist and
am aware I could add an array of the values to the session and bind it
each time, but I would prefer to do it this way and am curious why it
doesn't work.

Thanks in advance,
Max
 
It seems that you have to databind de drop,

ddlExam = (DropDownList)Session["ddlExam"];
ddlExam.DataBind();

Ezequiel Jadib
* (e-mail address removed)
* MSN: (e-mail address removed)
& Blog: ejadib.wordpress.com

1 San Martin 617 P. 2 B
( (54-11)4893-1694
: www.rdi2k.com
 
Back
Top