Redirect to another page using Html

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

 

Tags: ,


Categories: asp.net

Comments

1/22/2010 9:52:08 PM #

trackback

Redirect to another page using Html

Thank you for submitting this cool story - Trackback from DotNetShoutout

DotNetShoutout

1/27/2010 12:12:48 AM #

trackback

Redirect to another page using Html

You've been kicked (a good thing) - Trackback from DotNetKicks.com

DotNetKicks.com

1/27/2010 12:13:25 AM #

trackback

Redirect to another page using Html

You are voted (great) - Trackback from WebDevVote.com

WebDevVote.com

Powered by BlogEngine.NET 1.6.0.0 - Eco Theme by n3o Web Designers