Sep 20, 2004 #1 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
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 Jun 28, 2001 7 GB Place Code: Server.Transfer('http:\... to wherever'); Into the OnClick event for the button Upvote 0 Downvote
Sep 20, 2004 #3 DaZZleD Programmer Oct 21, 2003 886 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