Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Persist DropDownList values on postback
Message
From
26/11/2004 16:23:29
 
 
To
26/11/2004 15:33:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00964714
Message ID:
00965047
Views:
11
Cetin-

>No! Don't sweep DataReader from your brain. Actually now thinking at home I realize DataReader is still the way and you need no cache there (as I remember it'd be OK for you if you see the initial list for the life of session).

Too late. It's gone. :-P No, I'm just joking!

>while (myReader.Read)
> myList.Items.Add(...);
>myReader.Close();
>Then list is an unbound one that doesn't need any caching.

Yes, I think this would work, too. In that case the viewstate should handle my postback. Eventually I decided to stop (randomly) trying things and post here with a question, so I never did get around to this idea. In hindsight, I should have tried this one earlier rather than some of my other hairbrained ideas. *sigh*

>Yes, I'm caching data that's changing. I'm not sure if it's fast for I'm currently using localhost. If it's not an illusion then it's really fast (I was never happy with ASP being slow -amazed with ASP.Net) - didn't do any benchmarking or monitoring what comes and goes.

Cool. I'll definitely give this a look for one page in particular that could do with speeding up. Thanks to you and everyone. Helpful discussion.
Previous
Reply
Map
View

Click here to load this message in the networking platform