Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Button as Selected on WebForm 1

Status
Not open for further replies.

chuckh70

Programmer
Feb 4, 2004
71
0
0
US
Hello,

I have default.aspx which holds a series of buttons, and IFrame tags. Once a button is selected it sets the needed IFrame to visible, and the rest to false. Which is working great, and leads me to my current question. is there a way to set the select button to show that is selected some how? or even changing the button text font color to red.
 
In the Click event of the button you could do something like:
Code:
btnMyButton.BackColor = Color.FromName("red");
btnMyButton.ForeColor = Color.FromName("white");
 
Perfect. That was just what I was looking for thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top