Hi All,
I am using the following code to go to an ASPX page, it works but the page opens up in the same window. I want to open it in a new tab. Any thoughts on this?
protected void myBtn_Click(object sender, EventArgs e)
{
Response.Redirect("MyPage.aspx");
}
Hello Sam,
Response.Write("");
or you can use the HyperLinkButton control
HyperlinkButton1.NavigateURL = "MyPage.aspx";
HyperlinkButton1.Target = "_blank";
Hi,
Please try this code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
btnNavigate.Attributes("onClick") = "javascript:window.open('http://www.aspdotnetchamp.blogspot.in');"
End Sub
Hope this help!
Thanks!
沒有留言:
張貼留言