Leave button depressed after being pressed

N

Novice

Hey all, can the asp:button be used like a toggle button?

I don't really need to use the asp:button, I basically just need a toggle button that looks like a regular input button that will stay depressed once a user presses it.

I plan on having two buttons (A and B) on a webpage. When the page initially loads button A will be depressed and button B will be unpressed. if the user presses button B then that button will become depressed and button A will become unpressed again.

Does anyone know how this can be done either with the asp:button or with the regular html input button.

Thanks,
Novice
 
K

Ken Cox [Microsoft MVP]

I'd do a screen capture of a button in the two states you need and then
create it as an imagebutton. You could display the one you need at the
appropriate time by changing the imageurl property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top