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.
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.