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

Is it possible to use ASP.NET push new content to browser automatically

I just know I can do something in HTTP header like
<meta http-equiv="refresh" content="5">

but can ASP.NET push, for example, new database content to browser
automatically without using browser polling like the above.
Mar 17 '07 #1
4 1918
On Mar 17, 11:21 am, "Reid LI" <reids...@hotmail.comwrote:
I just know I can do something in HTTP header like
<meta http-equiv="refresh" content="5">

but can ASP.NET push, for example, new database content to browser
automatically without using browser polling like the above.
The server cannot communicate with the client directly and client has
to request the information.

Instead of refreshing a whole page you can consider JS/AJAX

Mar 17 '07 #2
Reid LI wrote:
I just know I can do something in HTTP header like
<meta http-equiv="refresh" content="5">

but can ASP.NET push, for example, new database content to browser
automatically without using browser polling like the above.
It's the HTTP protocol that sets the limitation. There is no way that
the server can push anything to the browser without the browser
requesting it first.

If you want to send data from the server to the browser, you need to put
a component in the browser that establishes a permanent connection
between the server and the browser.

This is of course a complicated solution just to update some data. You
can let the browser look for changes on the server without reloading the
page. A Javascript can use something like AJAX to contact the server,
and if there is any updated data, it can either fetch the data and put
it in the page, or just reload the page.

--
Göran Andersson
_____
http://www.guffa.com
Mar 17 '07 #3

More see here!

http://www.flash50.com/index.php
Mar 18 '07 #4
fy*****@gmail.com wrote:
More see here!

http://www.flash50.com/index.php
Nothing to see there. Stop spamming.

--
Göran Andersson
_____
http://www.guffa.com
Mar 18 '07 #5

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

Similar topics

14
by: Nick K. | last post by:
I am looking for architecture to push information from a server to a client browser. This information would be in the form of an alert. What I do not want to do is have the browser be on a timer...
1
by: Alin Capitanescu | last post by:
Hi all! I need some help with asp.net! Is there any way to make the client BROWSER (IE, NETSCAPE, OPERA etc) to wait for messages from a http/https host (server) in an internet environment? ...
4
by: HG | last post by:
Hi gurus Sorry the rather long post... I am facing a real world problem here, and I dunno how to approach it. Don't even know if this is the right group...but since my app is ASP.NET I tried...
1
by: Ike | last post by:
I have a snippet of code I got from a fellow named Frank Reynold's site. I've amended it such that if I have a file, which I call getdata.txt, which is a text file which an application writes to a...
8
by: dbaplusplus | last post by:
I worked on web development using java script many many years, so I am now a newbie to javascript. I have a single html page, which is generated dynamically using some programming language. Web...
23
by: mosesdinakaran | last post by:
Hi All, I need a small clarification in submitting the forms, Ur suggestions please. In a page I have two form and also two submit butons. (ie)
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
6
by: AJM Project | last post by:
Hello, I see this is a well known thing and have seen many answers but none have worked for me. It's just a test page I'm making and I've ran into this so I thought I'd ask how to fix it - inline...
10
by: Terrence Brannon | last post by:
Hello, The most common way of dynamically producing HTML is via template engines like genshi, cheetah, makotemplates, etc. These engines are 'inline' --- they intersperse programming...
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: 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
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
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,...
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.