by
Neon Quach
23. January 2010 22:44
If you want to redirect your current user to anther page from aspx page, here is html snippets code which can accomplish this task.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="redirect.aspx.cs" Inherits="redirect" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Welcome page</title>
<meta http-equiv="refresh" content="5; url=http://code2code.info" />
</head>
<body>
<form id="form1" runat="server">
<div>
This page will be redirect to http://code2code.info in 5 seconds
</div>
</form>
</body>
</html>
When you run this code, after 5 second, this page will be redirected to http://code2code.info
Regards
69961d9b-4402-430a-9643-b7e12675d8ba|1|5.0
Tags:
asp.net, c#
Categories: asp.net