Groups | Blog | Home
all groups > asp.net webcontrols > june 2004 >

asp.net webcontrols : Leave button depressed after being pressed



Novice
6/21/2004 2:52:01 PM
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,
Ken Cox [Microsoft MVP]
6/22/2004 10:50:17 PM
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.

[quoted text, click to view]
Ken Cox [Microsoft MVP]
6/22/2004 10:55:25 PM
BTW, if you need to capture the button as an image, SnagIt is a great
screen capture tool. For the down state, you'll want to use its timer
function.

http://www.techsmith.com/products/snagit/default.asp

[quoted text, click to view]
AddThis Social Bookmark Button