Hi
try this
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="jquery-1.10.2.js" type="text/javascript"></script>
<title></title>
<script type="text/javascript">
function opentab() {
window.open('http://www.codeproject.com/Questions/532873/Howplustopluscodeplustoplusopenplusnewplustabplusi');
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="btnOpenTab" Text="Open New Tab" runat="server" OnClientClick="opentab(); return false;" />
</form>
</body>
</html>
(or)
in server side:
protected void btnOpenTab_Click(object sender, EventArgs e)
{
string script = " <script type=\"text/javascript\"> window.open('http://www.codeproject.com/Questions/532873/Howplustopluscodeplustoplusopenplusnewplustabplusi'); </script> ";
ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", script, false);
}
<asp:Button ID="btnOpenTab" Text="Open New Tab" runat="server"
onclick="btnOpenTab_Click" />