Link to home
Start Free TrialLog in
Avatar of Shepwedd
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");
                                           }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Todd Gerbert
Todd Gerbert
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try
Response.Redirect("http://www.google.com", false);
Avatar of Shepwedd
Shepwedd

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.