using buttons to direct to different pages..

lidds

Junior Contributor
Joined
Nov 9, 2004
Messages
210
I have never really done any hard core coding in asp, however I need to do this one page. What I want is a page to display two buttons one "Private" and the other "Trader". What I want is if the user hits the "Private" button to direct the user to private.asp page and if he hits "Trader" it directs the user to trader.asp.

Can anyone help

Thanks in advance

Simon
 
Unless you need to do a postback (or do some server-side processing to determine the button targets) then you might as well just use javascript with your buttons to "direct" to another page, for ex:

Code:
<input type="button" value="Private" onclick="window.location.href='trader.asp';">

If you need to determine the target pages for the buttons before displaying them then you might use an input or asp:button with runat=server and set them up with the javascript event via their attributes collection the first time your page is hit. (Doesn't sound like you need it in this case.)

Good luck,
Paul
 
Back
Top