473,385 Members | 1,342 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,385 software developers and data experts.

Update Cache with database changes

SMG
Hi there,

I want to update my cached dataset, if there is any change in database. I
know this is possible in case of ASP.Net 2.0 , But how do I execute the same
task with ASP.Net 1.0

As there is need, if any change in database/tables happens then my dataset
should be updated.

Any help on this,

Shailesh
Nov 18 '05 #1
4 2174
Check out this article:
http://msdn.microsoft.com/msdnmag/is...e/default.aspx
"SMG" <SM*@nodmain.com> wrote in message
news:ej*************@tk2msftngp13.phx.gbl...
Hi there,

I want to update my cached dataset, if there is any change in database. I
know this is possible in case of ASP.Net 2.0 , But how do I execute the same
task with ASP.Net 1.0

As there is need, if any change in database/tables happens then my dataset
should be updated.

Any help on this,

Shailesh

Nov 18 '05 #2
Interesting question, but what would happen if your application changed data
in your cached dataset? Would you not lose your changes?

-Frank
"SMG" <SM*@nodmain.com> wrote in message
news:ej*************@tk2msftngp13.phx.gbl...
Hi there,

I want to update my cached dataset, if there is any change in database. I
know this is possible in case of ASP.Net 2.0 , But how do I execute the same task with ASP.Net 1.0

As there is need, if any change in database/tables happens then my dataset
should be updated.

Any help on this,

Shailesh

Nov 18 '05 #3
SMG
No, Currently there is no provison for changing the data in cached dataset ,
It is being used only from reading.

:-)
Shailesh
"Frank Mamone" <fr**********@canada.com> wrote in message
news:e$**************@TK2MSFTNGP15.phx.gbl...
Interesting question, but what would happen if your application changed data
in your cached dataset? Would you not lose your changes?

-Frank
"SMG" <SM*@nodmain.com> wrote in message
news:ej*************@tk2msftngp13.phx.gbl...
Hi there,

I want to update my cached dataset, if there is any change in database. I
know this is possible in case of ASP.Net 2.0 , But how do I execute the same task with ASP.Net 1.0

As there is need, if any change in database/tables happens then my dataset
should be updated.

Any help on this,

Shailesh

Nov 18 '05 #4
Process:
Set up a trigger on the table that may change that the dataset is drwan
from.
Have the trigger write a file to a directory

Use the insert method of the cache object and include a file dependency of
the above filename.

This will expire the cache dataset and require a trip to get fresh data when
needed.

HTH
Harry Simpson

"Frank Mamone" <fr**********@canada.com> wrote in message
news:e$**************@TK2MSFTNGP15.phx.gbl...
Interesting question, but what would happen if your application changed
data
in your cached dataset? Would you not lose your changes?

-Frank
"SMG" <SM*@nodmain.com> wrote in message
news:ej*************@tk2msftngp13.phx.gbl...
Hi there,

I want to update my cached dataset, if there is any change in database. I
know this is possible in case of ASP.Net 2.0 , But how do I execute the

same
task with ASP.Net 1.0

As there is need, if any change in database/tables happens then my
dataset
should be updated.

Any help on this,

Shailesh


Nov 18 '05 #5

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

Similar topics

20
by: Janaka | last post by:
I tend to use the SqlDataAdapter class in WinForms projects because once the inital data is loaded any modifications can be easily added/updated through a call to the Update() method. I've found...
6
by: Charts | last post by:
I used HttpContext.Current.Cache To cache data from database. The code is like that. public static DataView GetCategories() { if ( HttpContext.Current.Cache == null ) {...
4
by: simon | last post by:
I have cashed dataSet ds = Cache("userDataSet") If ds Is Nothing Then Cache("userDataSet") = createDataSet() End If function CreateDataSet 'code for creating dataSet 'SELECT name,surname...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
16
by: Ian Davies | last post by:
Hello Needing help with a suitable solution. I have extracted records into a table under three columns 'category', 'comment' and share (the category column also holds the index no of the record...
11
by: Jerry J | last post by:
How can I get an asp:Image to refresh when a user uploads a different jpg. I disabled caching using this command on Page_Load(): Response.Cache.SetCacheability(HttpCacheability.No Cache); but it...
8
by: brett | last post by:
How do I add a string to the cache so that it updates if the string source changes? CacheDependency() seems to want an absolute path. My string is a full http link. Thanks, Brett
2
by: hharry | last post by:
Hello All, I save a Hashtable of stock symbols + prices to the cache. The prices are updated every 30 minutes and saved to a database table. I would like to always have the latest prices in...
1
by: teenagelcruise | last post by:
hi, i have a problem with my code which is i cannot update and addnew data into the database but i can delete the data.plz give me an idea.this is my code that i wrote. <html> <head> <meta...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.