DropDownList in client

  • Thread starter Thread starter Raúl Martín
  • Start date Start date
R

Raúl Martín

I explain myself: I have a DropDownList of "suppliers" that it has like 300
items, the question is that whenever the client makes any thing with the
page

then in the servant I recover every time the data of the

DropDownList. Then, instead of recovering the data of the data base in each
ascent to the server I can store it everything in a session variable and
thus it

does not use the SQL-SERVER but that is what less it

worries to me, what I would really like is that that list of 300 items
remained in

the client and when I show the pageof the client, the

DropDownList, that it has converted in a select of HTML, recover the data
of anyway but in the client, so that thus it does not have to send to the
300 suppliers every time. I think that the option to keep an Array in frame
hidden and

only to update the list whenever it changes the list of "suppliers",
nevertheless then if it is not so my Select of HTML-CLIENT recovers

from the Array of the other frame. Well that is the idea, but I do not have
how to implementing it because it is

about Javascript and DHTML than asp.net. isn´t it?

some suggestion?



thanks a lot

PD: Sorry about my poor english
 
Hi,

If you use DropDownList Web Server control, it should be
able to keep the viewstate, which means if you fill it
when it first is loaded, it will keep the data in later
post back, unless you leave this page.

If you want to keep the items after leaving this page,
then you have to cache those items in Session or
Application variable. You could store the whole dataset
which bounds to the DropDownlist, or save the item in a
Arraylist or hashtable whichever is boundable to
dropdownlist.

Bin Song, MCP
 
Back
Top