LinkButton as navigator button

Hello,

I need a way to click on a LinkButton to navigate to a site such as www.google.com.

Thank you!
Rad1Asked:
Who is Participating?
 
Tom BeckConnect With a Mentor Commented:
You can add an OnClientClick attribute to it: OnClientClick="Navigate()".

function Navigate(){
    window.location.href="http://www.google.com";
}

Or you can use a standard html button.
<input type="button" onclick="location.href="http://www.google.com" value="Google" />
If you need to access it from the code behind you can add a runat="server".
0
 
Rad1Author Commented:
Great and thank you!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.