Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

navigate with button

Status
Not open for further replies.

ludmann

Programmer
Apr 14, 2004
49
GB
A simple question.
In asp.net I want to navigate to a page with a button (OnClick) the same way I would navigate to a page with a hyperlink.

How do I do this?

Marika
 
Place
Code:
 Server.Transfer('http:\... to wherever');
Into the OnClick event for the button

 
you could also use javascript to do this:
Code:
<input type="button" ... onClick="document.location.href='newLocation.htm'">
to save a roundtrip to the server.

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top