473,808 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Persisting Data between pages

Hi All,

We have a busy website, and I was wondering if we should persist the
data by storing the data table in a session or cookie, and when the
user re-loads the page I can cast the session or cookie back to a
datatable and rebind to the grid.

This is a closed web system so there is no problem getting users to
make sure cookies & javascript is enabled.

When the user clicks refresh for example it will re-load from the sql
server again.

But I am wondering if this is a good idea, apart from the obvious
problem of the data being out of date until the user clicks refresh,
are there any other problems this may cause like using more memory on
the server?
TIA

May 24 '07 #1
4 1263
Hello bo*****@lycos.c o.uk,

Why not to use System.Web.Cach e for this? where you can set the dependency
on updating cache whenever it required

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

bHi All,
b>
bWe have a busy website, and I was wondering if we should persist the
bdata by storing the data table in a session or cookie, and when the
buser re-loads the page I can cast the session or cookie back to a
bdatatable and rebind to the grid.
b>
bThis is a closed web system so there is no problem getting users to
bmake sure cookies & javascript is enabled.
b>
bWhen the user clicks refresh for example it will re-load from the sql
bserver again.
b>
bBut I am wondering if this is a good idea, apart from the obvious
bproblem of the data being out of date until the user clicks refresh,
bare there any other problems this may cause like using more memory on
bthe server?
b>
bTIA
b>
May 24 '07 #2
On 24 May, 17:40, Michael Nemtsev <nemt...@msn.co mwrote:
Hello bozz...@lycos.c o.uk,

Why not to use System.Web.Cach e for this? where you can set the dependency
on updating cache whenever it required
Thanks I will have a look at this, I also noticed that even comes with
it's own memory management.

May 25 '07 #3
Why not to use System.Web.Cach e for this? where you can set the dependency
on updating cache whenever it required

Sorry I forgot to mention its a load balance servers, and the data is
user specific.

May 25 '07 #4
Hello bo*****@lycos.c o.uk,

You means session info?
So there is no standard way for this, and you need to extend the session
provider to add scalability of session info among nodes in cluster

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
>Why not to use System.Web.Cach e for this? where you can set the
dependency on updating cache whenever it required
bSorry I forgot to mention its a load balance servers, and the data is
buser specific.
b>
May 25 '07 #5

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

Similar topics

2
3091
by: Citoyen du Monde | last post by:
Trying to get some ideas on a simple javascript project (to teach myself the language). I want to develop a client-side vocabulary practice application that would allow users to enter their own words, their own definitions plus an example of how the word is used in practice. It'll be all client side with - cookies? to get persistence so that the words won't disappear on me each time the page is closed (which is what happened when I
1
1668
by: David Anderson | last post by:
I'm having trouble persisting viewstate information for webcontrols I've disabled via javascript. I have a group of textboxes that I enable/disable via a checkbox control that invokes a javascript method in its onclick attribute. When the page does a postsback, the textboxes that are enabled have their viewstate persisted; however, the ones that are disabled (but still have text in them) do not have their viewstate persisted. I have...
4
3621
by: Dave Veeneman | last post by:
When does serializing objects make more sense than persisting them to a database? I'm new to object serialization, and I'm trying to get a feel for when to use it. Here is an example: I'm writing an accounting application. I have a chart of accounts in the form of a containment hierarchy. A GeneralLedger contains a number of Accounts, and each of these Accounts can contain a Aubledger, which contains its own Accounts, and so on. The...
1
1670
by: lim | last post by:
What is the possible error that occurs when the Page_load event is not triggered during execution. In my page there's some basic server control. Is there any loops holes?
2
1831
by: headware | last post by:
I am new to 3-tiered design and am in the process of designing an application that will work with ASP.NET as well as Windows Forms (and possibly with a PDA of some sort down the road). My question is about the statefulness of business objects. In some of the examples that I've seen of 3-tiered systems using ASP.NET, the business objects are recreated every time they are accessed. They are not kept in the Session variable for use next time...
2
2800
by: John Hoge | last post by:
A common problem in database updates in the maintenece of "domain tables". For example, a product database has an option for color. When entering the specifications for a new product, a domain table is used to populate a drop down list of available colors. Simple so far. But what if the user wants to create a new color specification on the fly? Let's say that this is a complicated process requiring it's own page with validation code....
19
2546
by: Siobhan | last post by:
Hi What is the recommended way to store a user's database credentials across the pages of a web application so that each time the database is accessed the system doesn't have to ask them for their username and password again We have previously stored these in a session variable (encrypted) and retrieved from their - but are worried about the impact on performance if the number of users increases. Had thought about cookies but worried...
5
4842
by: Dick | last post by:
I have a GridView bound to an ObjectDataSource. I have a Button that calls GridView.DataBind. I want the row that is selected before the DataBind to still be selected afterwards. This happens automatically if the data doesn't change. But if records have been added or deleted then it looks as if some code is necessary: I've done this by using GridView.SelectedValue to get the key value of the currently selected Row and then by itterating...
0
2101
by: Homer J. Simpson | last post by:
A few weeks ago I asked for suggestions on how to persist a tree's node state to cookies, without causing postbacks on each click in the tree. I had a single .aspx file, with a row of buttons on top of the screen, and a tree control below (with EnableViewState set to true). I let the user expand/collapse away to his hearts content without needless roundtrips. When the user clicked on a button at the top, I'd reload the page, check...
0
9600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10113
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.