lidds Posted April 19, 2005 Posted April 19, 2005 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 Quote
PWNettle Posted April 19, 2005 Posted April 19, 2005 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: <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 Quote
lidds Posted April 20, 2005 Author Posted April 20, 2005 Thanks for that Paul worked a treat. Simon Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.