Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / July 2004

Tip: Looking for answers? Try searching our database.

Cache and new window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vik - 17 May 2004 17:33 GMT
On an aspx page, a user can enter some search criteria and get the data from
a database. The search results are stored in a dataset and then cached in a
Session (for datagrid paging). If the user opens a new browser window and
enters the new search criteria, then the new search results overwrite the
previous results in the Session. Now the datagrid on the first page will
display the search results from the second page.

How can I cache data independently (that is without overwriting each other)
on these pages?

Thanks.
Mr. Dot Net - 11 Jul 2004 12:42 GMT
You're actualy talking about caching for different instances of a page.
That's an issue you should solve by design.
You have many different ways you must consider according to the nature of
your application.

Normaly the place to hold a page instance specicifc data should be the view
state. If you'll save that in the view state there won't be any chance that
the data will be overriden in another instance.
One reason not to do that would be large size of data and small bandwith.
You can solve that by compressing the view state for example.
Though, if the data is too large for view state it might be too large for
the session as well.
What you should consider then is using paging through the SQL server
instead.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.