473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Dataset in viewstate

Hi,
I am storing dataset in viewstate between postbacks. But now my datasets are
getting bigger and is effecting the speed of the pages and making them
bigger. I can store it in session also but then if I open the same page in
another window then it will overwrite the session of the previous page. Is
there any better logic by which I can have datasets stored in memory
seperately for each page I open and also get cleared as the page is closed.
Regards,
Vineet
Nov 19 '05 #1
2 1630
Vineet,

If you only read into the dataset, consider reloading it from the database
on every postback.

If you can't do this, you can always keep several instances of dataset in
the session. Save every instance in a separate session variable and persist
the variable name or index in the viewstate.

Eliyahu

"EDom" <te*******@peoplewareindia.com> wrote in message
news:Og****************@TK2MSFTNGP09.phx.gbl...
Hi,
I am storing dataset in viewstate between postbacks. But now my datasets are getting bigger and is effecting the speed of the pages and making them
bigger. I can store it in session also but then if I open the same page in
another window then it will overwrite the session of the previous page. Is
there any better logic by which I can have datasets stored in memory
seperately for each page I open and also get cleared as the page is closed. Regards,
Vineet

Nov 19 '05 #2
Hi,

When can I clear this data from session variables. As it will keep
growing...

Regards,

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uA**************@TK2MSFTNGP15.phx.gbl...
Vineet,

If you only read into the dataset, consider reloading it from the database
on every postback.

If you can't do this, you can always keep several instances of dataset in
the session. Save every instance in a separate session variable and persist the variable name or index in the viewstate.

Eliyahu

"EDom" <te*******@peoplewareindia.com> wrote in message
news:Og****************@TK2MSFTNGP09.phx.gbl...
Hi,
I am storing dataset in viewstate between postbacks. But now my datasets

are
getting bigger and is effecting the speed of the pages and making them
bigger. I can store it in session also but then if I open the same page in another window then it will overwrite the session of the previous page. Is there any better logic by which I can have datasets stored in memory
seperately for each page I open and also get cleared as the page is

closed.
Regards,
Vineet


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: DotNetJunkies User | last post by:
Hi all, I have a question on how can I write the entire Dataset to a NTEXT field of SQLServer. Can anyone help me? Thanks! /mike
1
by: John Scott | last post by:
I was just wondering if it's possible to cast a datagrid DataSource as a DataSet? I've stepped through my code when the grid is first being bound and the DataSource shows up as a DataSet for the...
3
by: martin | last post by:
Hi, I am storing a dataset in cache, which is happening fine. I can easily retrive it at postback from the cache, cast it to a dataset and reuse it. However I have specified that the cache...
5
by: Jason | last post by:
I am having problems understanding how to access a datasource only once, fill a single dataset, and then reference that dataset multiple times through different user controls(ascx) found on the...
2
by: ALPO | last post by:
ANy good examples of paging against a cached dataset. Our datasets will be cached in viewstate.
3
by: Arthur Dzhelali | last post by:
Is there any way to cache dataset on one page and it will be accessible for one user? if you declare dataset shared it will stay on the server and page will be able reference to it on reload,...
2
by: Raghu Raman | last post by:
Hi , i have a class and has a method which accepts a qry and results a dataset.In my aspx page,i have a dataset .am filling this dataset by calling that class in the pageload event.is working...
3
by: postings | last post by:
Hi Can anybody help? (ASP.NET 1.1) The event below is triggered when the user clicks an update button column. I am trying to update a dataset which eventually gets bound with a datagrid,...
2
by: Andrew | last post by:
I hope this doesn't sound too silly. I am trying to cache a datatSet. I have written the code below. I insert into the cache: Eg. i = 1. if (Cache == null) { Cache.Insert("testQuestion"+ i,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.