|
| m_coomer146 : On March 15, 2008 9:33 AM said: |
You can also use the time to redirect after a submission. If a user joins your site they are usually directed to a confirmation page. On the confirmation page you can set the timer to redirect the user back to your home page or to the login page.
<html dir="ltr" xmlns="www.w3.org/.../xhtml">
<script runat="server">
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Redirect("~/Default.aspx")
End Sub
</script>
<body>
<form id="form1" runat="server">
<h1>Submission successful!</h1>
<p>Thank you for your submission</p>
<p>If you are not redirected in 5 seconds, click <asp:HyperLink runat="server" ID="lnkredirect" NavigateUrl="~/Default.aspx" Text="here"></asp:HyperLink>
</p>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Timer ID="Timer1" runat="server" EnableViewState="false" Interval="5000" OnTick="Timer1_Tick">
</asp:Timer>
</form>
</body>
</html>
|
|
Leave a Comment
You must be logged in to leave a comment. Click here to log in.