NEW BROWSER TAB OPEN
Click the Button Open New Browser Tab in Same Browser Using Asp.Net C#
DEMO
C# Coding
protected void Button1_Click1(object sender, EventArgs e)
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>
protected void Button1_Click1(object sender, EventArgs e)
{
Response.Redirect("calend.aspx");
}
0 comments:
Post a Comment