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

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 1948
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*******@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.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%****************@TK2MSFTNGP10.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*******@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.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@localhost> wrote in message
news:OR**************@tk2msftngp13.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%****************@TK2MSFTNGP10.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*******@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.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**************@tk2msftngp13.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**********@otawa.net> wrote in message
news:ef**************@TK2MSFTNGP10.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**************@tk2msftngp13.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*******@discussions.microsoft.com> wrote in message
news:81**********************************@microsof t.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*******@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.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
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
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: 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:
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.