Wednesday, 8 October 2014

How to Open New Browser Tab in Button Click Using Asp.Net C#

No comments    
categories: ,
NEW BROWSER TAB OPEN

Click the Button  Open New Browser Tab in Same Browser  Using Asp.Net C#

                  DEMO







Html Coding


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

</head>
<body>
    <form id="form1" runat="server">
    <div>    

        <asp:Button ID="Button1" runat="server"
            OnClick="Button1_Click1" OnClientClick="document.forms[0].target = '_blank';"
             Text="Open New Tab" /> 
       
       
    </div>
    </form>
</body>
</html>


C# Coding

 protected void Button1_Click1(object sender, EventArgs e)
    {
        Response.Redirect("calend.aspx");
    }












                                                         
                                                                 

0 comments:

Post a Comment