473,785 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forceing a client side REFRESH

I need to force the client side to refresh the page. What function do I use
todo this in C# with a ASPX page?
Nov 18 '05 #1
7 1982
Hi Bryan,

You cannot force the client side to refresh the page from the server side. Server will only provide response upon request. You have to refresh the page from the client side.

Bin Song, MCP

----- Bryan G wrote: -----

I need to force the client side to refresh the page. What function do I use
todo this in C# with a ASPX page?

Nov 18 '05 #2
ok, then, is there a way on the client side to create a timmer that will
send an event of some type to the server that will cause the server to
re-render the data to the client side again?
"Bin Song" <an*******@disc ussions.microso ft.com> wrote in message
news:11******** *************** ***********@mic rosoft.com...
Hi Bryan,

You cannot force the client side to refresh the page from the server side. Server will only provide response upon request. You have to refresh the page
from the client side.
Bin Song, MCP

----- Bryan G wrote: -----

I need to force the client side to refresh the page. What function do I use todo this in C# with a ASPX page?

Nov 18 '05 #3
<head>
<META HTTP-EQUIV="Refresh" CONTENT="300">
</head>

300=number of seconds until refresh

"Bryan G" <ga************ **@hotmail.com> wrote in message
news:e%******** ********@TK2MSF TNGP10.phx.gbl. ..
ok, then, is there a way on the client side to create a timmer that will
send an event of some type to the server that will cause the server to
re-render the data to the client side again?
"Bin Song" <an*******@disc ussions.microso ft.com> wrote in message
news:11******** *************** ***********@mic rosoft.com...
Hi Bryan,

You cannot force the client side to refresh the page from the server
side. Server will only provide response upon request. You have to refresh the page from the client side.

Bin Song, MCP

----- Bryan G wrote: -----

I need to force the client side to refresh the page. What function

do I use
todo this in C# with a ASPX page?


Nov 18 '05 #4
Ok got that working but it does not get the data from the server it just
uses the cach from the client machine.
I need this timmer to have the server resend the data again too. Is there a
way todo this?

and thanks thus far.

Bryan

"Raterus" <raterus@localh ost> wrote in message
news:OR******** ******@tk2msftn gp13.phx.gbl...
<head>
<META HTTP-EQUIV="Refresh" CONTENT="300">
</head>

300=number of seconds until refresh

"Bryan G" <ga************ **@hotmail.com> wrote in message
news:e%******** ********@TK2MSF TNGP10.phx.gbl. ..
ok, then, is there a way on the client side to create a timmer that will send an event of some type to the server that will cause the server to
re-render the data to the client side again?
"Bin Song" <an*******@disc ussions.microso ft.com> wrote in message
news:11******** *************** ***********@mic rosoft.com...
Hi Bryan,

You cannot force the client side to refresh the page from the server side.
Server will only provide response upon request. You have to refresh the

page
from the client side.

Bin Song, MCP

----- Bryan G wrote: -----

I need to force the client side to refresh the page. What

function do I use
todo this in C# with a ASPX page?



Nov 18 '05 #5
Bryan,

in addition to the line you´ve added in your HTML code
(<meta http-equiv="refresh" content="300">)
add a line with the following HTML:
<meta http-equiv="pragma" content="no-cache">

That line tells the browser not to cache the page.
So, when the page is reloaded, the browse will force a new request to the
server.

I hope it may help you.

Luiz.

"Bryan G" <ga************ **@hotmail.com> wrote in message
news:OK******** ******@tk2msftn gp13.phx.gbl...
I need to force the client side to refresh the page. What function do I use todo this in C# with a ASPX page?

Nov 18 '05 #6
Ok I added the code but I use a IsPostBack function and it is reporting
that it is a new refresh each time. In the IsPostBack if statement I
disabale all my controls and this is what I am getting into now in the page
load function just like it was a new window being opened. So the question
is when the HTML timmer goes off is it sending a message to the server or is
it just a refresh on the client side?

I need it to send something to the server like a buttonPress event or
something so that the server will render the new data to the client and BE a
PostBack. Just like if I where to press a button.

Thanks again, I will get there

Bryan
"Luiz Augusto" <lu**********@o tawa.net> wrote in message
news:ef******** ******@TK2MSFTN GP10.phx.gbl...
Bryan,

in addition to the line you´ve added in your HTML code
(<meta http-equiv="refresh" content="300">)
add a line with the following HTML:
<meta http-equiv="pragma" content="no-cache">

That line tells the browser not to cache the page.
So, when the page is reloaded, the browse will force a new request to the
server.

I hope it may help you.

Luiz.

"Bryan G" <ga************ **@hotmail.com> wrote in message
news:OK******** ******@tk2msftn gp13.phx.gbl...
I need to force the client side to refresh the page. What function do I

use
todo this in C# with a ASPX page?


Nov 18 '05 #7
Bin
Do you know where some C# sample code of this would be at?
"Bin Song" <an*******@disc ussions.microso ft.com> wrote in message
news:81******** *************** ***********@mic rosoft.com...
You can use setTimeout method to run a client side function which posts the form. For information on setTimeout:
http://msdn.microsoft.com/workshop/a...asp?frame=true
Bin Song, MCP

----- Bryan G wrote: -----

ok, then, is there a way on the client side to create a timmer that will send an event of some type to the server that will cause the server to re-render the data to the client side again?
"Bin Song" <an*******@disc ussions.microso ft.com> wrote in message
news:11******** *************** ***********@mic rosoft.com...
> Hi Bryan,
>> You cannot force the client side to refresh the page from the
server side.
Server will only provide response upon request. You have to refresh the page from the client side. >> Bin Song, MCP
>> ----- Bryan G wrote: -----
>> I need to force the client side to refresh the page. What
function do I use
> todo this in C# with a ASPX page?
>>>

Nov 18 '05 #8

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

Similar topics

7
312
by: Bryan G | last post by:
I need to force the client side to refresh the page. What function do I use todo this in C# with a ASPX page?
0
9646
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9483
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
10346
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
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9956
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...
0
8982
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6742
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
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
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

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.