473,398 Members | 2,812 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,398 software developers and data experts.

ASPX page updates

I am implmenting an aspx page that displays data from a database. I would
like the page to automatically update when the database changes. Does .NET
provide a mechanism that would cause a client web browser to perform a post
back that is initiated by the server side (possibly the users session
object). The process would be initiated by something like a database trigger.

The other option would be just to have the client continue to poll for
updates.
Nov 16 '05 #1
3 1273
Hi,

No AFAIK,
you have two problems, how the client finds out that the Db changed and how
the web app knows the same.
The web app can poll the DB and look for a change, I can't think of the best
way right now but a trigger should be involved.

then the browser can poll the web app, you do not need to submit the entire
page, create a script that call a web page in the server and return a single
value, like the date of the last update then if it's different you can
submit the entire page.
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"James Lennon" <Ja*********@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
I am implmenting an aspx page that displays data from a database. I would
like the page to automatically update when the database changes. Does
.NET
provide a mechanism that would cause a client web browser to perform a
post
back that is initiated by the server side (possibly the users session
object). The process would be initiated by something like a database
trigger.

The other option would be just to have the client continue to poll for
updates.

Nov 16 '05 #2
James,

I believe that you will have to go with a client side implemetation here.
..Net does not provide a mechanism to refresh a browser from the server (to my
knowledge) but you can do this easily on the client side with a meta refresh
tag.

Hope this helps.
Nov 16 '05 #3
James Lennon wrote:
I am implmenting an aspx page that displays data from a database. I
would like the page to automatically update when the database
changes. Does .NET provide a mechanism that would cause a client web
browser to perform a post back that is initiated by the server side
(possibly the users session object).
Do you really want a *post back*? That means resending a web form, which
usually triggers a warning message by the browser.

[...] The other option would be just to have the client continue to poll for
updates.


You can use the non-standard HTTP header "Refresh" here.

// Causes a refresh every 10 seconds
Response.AppendHeader("Refresh", "10");

Cheers,
--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de
Nov 16 '05 #4

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

Similar topics

6
by: Tony K | last post by:
I have the most peculiar problem with an ASP.NET page which we use for downloading a file. When the user clicks on a link, the link points to an ASPX page which downloads the file selected. ...
1
by: djeddiej | last post by:
Hello I am running IIS 5.1 on Win XP Pro with all the latest patches and updates. I have installed the .NET framework and attempted to run a simple .aspx page from the sample microsoft .net...
6
by: dkode8 | last post by:
Hello, I am creating an application that uses impersonation to log a user into our domain and then show them the contents of their network share where they store their files. I have all the...
8
by: Thomas Coleman | last post by:
Ok, I've obviously discovered that Global.aspx has been completely changed in ..NET 2.0. However, I haven't figured out how to declare a constant that's available to any page in my application...
1
by: Will Gillen | last post by:
I know this has probably been asked before, but I can't seem to find a solid answer in any of the archives. First, before my question, please forgive my limited knowledge of the event lifecycle...
3
by: =?Utf-8?B?QXJ1bmVzaCBNb2hhbg==?= | last post by:
Hello All: I have an ASPX A.ASPX where I am displaying realtime data using embedded ASPX page B.ASPX. When I go to next page/previous page from A.ASPX page, I am able to go to next/previous...
6
by: fperri | last post by:
Hi, I'm very new to ASP, and I have been thrown into updating a website that was already written in ASP and pushing it to the web for the first time. So far, with my old knowledge of html and...
3
by: =?Utf-8?B?QnJhbmRvbg==?= | last post by:
Hi, I have an aspx page that has the "include" code in it which includes another page that displays information. I also have an upload page that allows users to upload a simple html document...
1
by: =?Utf-8?B?QnJhbmRvbg==?= | last post by:
Hi, I have an aspx page that contains an include section which calls an html page for text to be displayed on the aspx page. I also have an upload page that allows users to upload a simple html...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.