HOW TO OPEN WEBFORM IN NEW TAB OR WINDOW IN ASP.NET

HOW TO OPEN WEBFORM IN NEW TAB OR WINDOW IN ASP.NET :



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="navigationTechnique.aspx.cs"Inherits="navigationTechnique" %>

<!DOCTYPE html>

<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h1><u>Navigation Technique</u></h1>
            <br />
            <a href="webform2.aspx" target="_blank">Click here to Redirect to Webform 2 using target value as blank</a><br />
            <a href="webform2.aspx" target="_new">Click here to Redirect to Webform 2 using target value as new</a>
        </div>
    </form>
</body>                                                                                                                                                          
</html>

Source code for webform2.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="webform2.aspx.cs"Inherits="webform2" %>

<!DOCTYPE html>

<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h3>This is Webform 2</h3>
        </div>
    </form>
</body>
</html>

Comments

Popular posts from this blog