473,382 Members | 1,400 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,382 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 1946
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.