Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Persist DropDownList values on postback
Message
From
26/11/2004 04:44:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/11/2004 02:27:15
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00964714
Message ID:
00964862
Views:
9
>Çetin-
>
>>OutputCache in user control didn't work? :(
>
>From the help it seems it's the same as setting the HttpCachePolicy, which I do use, but it's not related to this problem, AFAICT. It's not really a caching issue. BTW, changing to instantiating my class (with the DataReader) on PostBacks as well as initial load is working fine.
>
>>BTW why are you putting the control in a session var? Wouldn't adding dataset to Cache be better?
>
>Hm...I'm probably missing why you're suggesting the cache instead of a session variable. IAC, I am saving the DataReader to a sesssion variable. Saving the dropdown to a session var was a bit of a desperate try.

Suggesting cache instead of session just because new caching services seemed to me more appropriate then using old session vars. Cache and enableviewstate and multiple users would benefit it I think.
DataReader? Isn't it closed after first read? Even somehow it's still open wouldn't it be at 'eof'? I think you mean dataset or something like that.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform