DropDown and Caching

J

JJ

If I were to use Caching for a dropdownlist can I disable viewstate for
this control? Would I lose control behavior like selectedIndex etc.? I
would think since my ddl has like 50+ rows in it and they don't change
once the ddl is populated that this control would be an ideal candidate
for Caching, agreed?

Thanks,

JJ
 
M

Mark Rae

If I were to use Caching for a dropdownlist can I disable viewstate for
this control? Would I lose control behavior like selectedIndex etc.?

I would think so...
I would think since my ddl has like 50+ rows in it and they don't change
once the ddl is populated that this control would be an ideal candidate
for Caching, agreed?

If the underlying data never changes or, at least, changes *very*
infrequently, you will gain some (but probably not very much) performance by
caching the DataSource. I quite often do this for static or almost static
data, e.g. countries and currencies - saves a database query every time the
underlying data is required.
 
M

master_programmer

Use ODBC its easier.

Mark said:
I would think so...


If the underlying data never changes or, at least, changes *very*
infrequently, you will gain some (but probably not very much) performance by
caching the DataSource. I quite often do this for static or almost static
data, e.g. countries and currencies - saves a database query every time the
underlying data is required.
 

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

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top