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

Force ASP.NET 2.0 page refresh when the database is updated

Hello!

I have an ASP.NET page that displays some data from an SQL Server 2005
database, using a Select query. The database is updated by another piece of
software, independently of the ASP.NET page. The ASP.NET page only displays
data and it has nothing to do with inserting or updating data.

What is the best way to force the refresh of the ASP.NET page every time a
new record is inserted in the table?

I tried to implement SQL Server cache dependency/invalidation but although
the page returned no errors, I couldn't manage to make it refresh.

Thank you in advance,
Hrvoje
Jun 27 '08 #1
2 2167
You can't do much more than polling either by :

- refreshing at a regular interval (for example using setTimeOut client side
or a refresh meta tag)
- if this is costly you could perhaps issue an out of band call that will
just see if a refresh is needed and do the actual refresh based on the
result ?...

Some more details about the exact context could also help...

--
Patrice

"Hrvoje Vrbanc" <hr*****@recro.hra écrit dans le message de groupe de
discussion : #H**************@TK2MSFTNGP06.phx.gbl...
Hello!

I have an ASP.NET page that displays some data from an SQL Server 2005
database, using a Select query. The database is updated by another piece
of software, independently of the ASP.NET page. The ASP.NET page only
displays data and it has nothing to do with inserting or updating data.

What is the best way to force the refresh of the ASP.NET page every time a
new record is inserted in the table?

I tried to implement SQL Server cache dependency/invalidation but although
the page returned no errors, I couldn't manage to make it refresh.

Thank you in advance,
Hrvoje
Jun 27 '08 #2
It is simple not possible to force a refresh like this because of the
inherent nature of the web.

The closest thing you can do is polling like the other person suggested.
"Hrvoje Vrbanc" wrote:
Hello!

I have an ASP.NET page that displays some data from an SQL Server 2005
database, using a Select query. The database is updated by another piece of
software, independently of the ASP.NET page. The ASP.NET page only displays
data and it has nothing to do with inserting or updating data.

What is the best way to force the refresh of the ASP.NET page every time a
new record is inserted in the table?

I tried to implement SQL Server cache dependency/invalidation but although
the page returned no errors, I couldn't manage to make it refresh.

Thank you in advance,
Hrvoje
Jun 27 '08 #3

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

Similar topics

2
by: thenetflyer | last post by:
<!-- The following sample should authorize the user to log on the site. This works once but after refreshing the browser, it does not prompt again for login until all browser (IE 6) windows are...
4
by: Martin | last post by:
This is probably more of an HTML question than PHP. Perhaps someone here can answer or point me to a proper newsgroup. How can I force the browser to reload an image from the server? I have a...
2
by: Jonathan Driller | last post by:
I am attempting to block repeat downloads from a site. I need to have a landing page pass a referer to a secured page. I have tried a meta refresh redirect and several Javascript redirect...
19
by: Jay | last post by:
I'm trying to refresh browser when some new information is available in DB. is there any way to force to refresh browser? Thanks. -Kev
1
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client, without user press Contrl+F5 in IE ? - Marco
3
by: SS | last post by:
Hi, I don't want to refresh a web page to query and display database. I want the page shows information immediately when database changes. What kind of technology or method would be able to...
2
by: Oenone | last post by:
I have an application which loads plugin DLLs from various directories on the local disk. To avoid problems with the DLLs being locked by IIS, I have modified my code so that it copies the DLLs to...
2
by: =?Utf-8?B?U2lsa0NpdHlGbG9yaWRh?= | last post by:
I have a web page "PgA" with a GridView. I open another page "PgB" in a new window. On PgB, they do some things that affect the underlying data for the GridView on PgA. When the user is done...
8
by: tarunkhatri | last post by:
Hello, I have a php page with a form(grid) which is submitting values to the database. <form action="<?php echo $_SERVER?>" method="POST"> As soon as i press submit, data is updated in the...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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?
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...
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...

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.