Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...