I'm not sure if this will help but; this is what I do when I want the page
to be refreshed. It is server based, I find it nessary if a resource on the
server has changed and I want it reflected in the browser.
Public Shared Sub RefreshPage()
Dim httpCxt As System.Web.HttpContext = GetHTTPContext()
httpCxt.Response.Redirect(httpCxt.Request.RawUrl) ' RawUrl contains
the full url, including parameters.
End Sub
Public Shared Function GetHTTPContext() As System.Web.HttpContext
Return (System.Web.HttpContext.Current)
End Function
"Nathan Sokalski" <> wrote in message
news:...
> One thing that I have often needed to do that I have been unable to find a
> way to do is refresh the page (basically do the same thing as pressing the
> browser's Refresh button). I know how to do this using Javascript/JScript,
> but I have situations in which I need it to be done immediately after code
> that is part of my other code. Is there any way to do this? Thanks.
> --
> Nathan Sokalski
>
> http://www.nathansokalski.com/
>