Shepwedd
asked on
How do I open a link in a new page using ASP.NET C#
I need to amend an old application that was written using c# asp.net 1.1 framework. I have the attached image button that I want to link to a url that opens in a new page. I tried Response.Redirect but I can't seem to get the url to open in a new page? Can anyone help?
<asp:imagebutton id="imgClientStandardRates" runat="server" ImageUrl="../img/AR Status/x.gif"></asp:imagebutton>
private void imgClientStandardRates_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
Response.Redirect("http://www.google.com");
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tgerbert,
yip, upon clicking the image I just want to navigate to a url but within a new page. Your solution worked, thanks!
ragi0017,
your solution didn't make any difference.
yip, upon clicking the image I just want to navigate to a url but within a new page. Your solution worked, thanks!
ragi0017,
your solution didn't make any difference.
Response.Redirect("http://www.google.com", false);