Forces reload on C# web application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone have an idea on how to programmatically force a page to
reload(refresh)? Im developing a asp.net web application using C#.. any help
would be nice...


Thanks in advance!
 
Hello RaiN,

Use javascript for this, or (I didn't try this) use HttpResponse.Redirect
method to redirect on self

R> Does anyone have an idea on how to programmatically force a page to
R> reload(refresh)? Im developing a asp.net web application using C#..
R> any help would be nice...
R>
R> Thanks in advance!
R>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Rain said:
Does anyone have an idea on how to programmatically force a page to
reload(refresh)? Im developing a asp.net web application using C#.. any
help would be nice...

Once the page is rendered in the client browser, you are outside of any
server side C# code. So you have to do this on the client. Using
javascript to set the location is one possibility, do more research into the
DOM for additional info on that. If you want it to automatically refresh
after a specified interval you can use the following tag in your HEAD
element:

<META HTTP-EQUIV="Refresh" CONTENT="5">

This will cause your page to refresh every 5 seconds.
 
Thanks Michael, il try this method of yours.. does anyone else have any
suggestions and ideas? thanks so much!
 
Thanks Tom, i was having problems with it because my listener is still
running and i dont have any button so i am having a hard time displaying the
message i get from the server to the page because there is no button for me
to click so the page could reload since im used to developing pages with
controls to click which refreshes the page automatically.. Thanks anyone have
an idea on this? but thanks tom for the reply..
 
Hello RaiN,

I rekon that the answer lies in the AJAX area, to refresh only part of data
without reloading whole page.
I'd recomend ask in ASP.net group about it

R> Thanks Tom, i was having problems with it because my listener is
R> still running and i dont have any button so i am having a hard time
R> displaying the message i get from the server to the page because
R> there is no button for me to click so the page could reload since im
R> used to developing pages with controls to click which refreshes the
R> page automatically.. Thanks anyone have an idea on this? but thanks
R> tom for the reply..
R>
R> "Tom Porterfield" wrote:
R>---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Back
Top