DropDownList Session

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
 
E

Ezequiel Jadib

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top