Radiobuttonlist & OnMouseOver

BlackSteer

Newcomer
Joined
Jun 22, 2004
Messages
3
Radiobuttonlist

Hi, i'm writing a web application with vb.net.

I have a radiobuttonlist control on my web form - is it possible
to use the Onmouseover method to change the color of each radiobutton item
in the list when ever i move the mouse on it? :confused:

Do i have access to an individual line (radiobutton) indise the radiobuttob list?
can i color it with a different color?

Thanks
 
Last edited:
You could put the control in a table and call the OnMouseOver event for the table cell your control is in. Then call a routine from there that would change the backcolor of the radiobutton control. Something like the following:

<td onmouseover="ChangeRBColor">
<asp:radiobutton id="RadioButton1" />
</td>

Protected Sub ChangeRBColor()
RadioButton1.BackColor = System.Drawing.Color.Purple
End Sub

HTH

Eva
 
Back
Top