Hi,
I dont think if you can open a page in new tab.. It is a client setting and you have not control over it. The browers usually decide what to do. What you can do is to open the the page a separate window instead using window.open method:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" language="javascript">
function Navigate()
{
window.open("Page1.aspx");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="Button1" runat="server" PostBackUrl="~/Page2.aspx" Text="Button" OnClientClick="Navigate();" />
</form>
</body>
</html> Or open it at server side like:
Page.ClientScript.RegisterStartupScript(Me.GetType(), "Open Window",
"window.open('http://www.google.com' , 'no', 'height=300,width=
500');", True);