Refresh page

N

nuhura01

Hi..

I'm creating a new html page using the code below in order to preview
and print data:

Dim oStringWriter As System.IO.StringWriter = New
System.IO.StringWriter
Dim oHtmlTextWriter As System.Web.UI.HtmlTextWriter = New
System.Web.UI.HtmlTextWriter(oStringWriter)

Me.ClearControls(datagrid)
datagrid.RenderControl(oHtmlTextWriter)
Response.Write(oStringWriter.ToString())
HttpContext.Current.Response.Write("<script>window.print();</script>")
HttpContext.Current.Response.Write("<br><br>")
HttpContext.Current.Response.Write("<input id=btnBack type=button
value=Back size=20 onClick=window.history.go(-1)>")
Response.End()

Since my system is using cache, so I have to click the browser refresh
button after clicking at the Back button.

Is it possible for me to include the code for refresh button inside
the Back button?

HttpContext.Current.Response.Write("<input id=btnBack type=button
value=Back size=20 onClick=window.history.go(-1)>")

so that once the user click at the Back button, it will automatically
forward back to the system previously. If so, how can I do that? Any
sample for that? Any help is greatly appreciated..

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top