Sep 20, 2004 #1 ludmann Programmer Joined Apr 14, 2004 Messages 49 Location 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
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
Sep 20, 2004 #2 FCAS Programmer Joined Jun 28, 2001 Messages 7 Location GB Place Code: Server.Transfer('http:\... to wherever'); Into the OnClick event for the button Upvote 0 Downvote
Sep 20, 2004 #3 DaZZleD Programmer Joined Oct 21, 2003 Messages 886 Location US 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 Upvote 0 Downvote
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
Sep 20, 2004 Thread starter #4 ludmann Programmer Joined Apr 14, 2004 Messages 49 Location GB Thank you Upvote 0 Downvote