how do i change "class" (style) property on radion button

  • Thread starter Thread starter George Ter-Saakov
  • Start date Start date
G

George Ter-Saakov

I am trying to set class property of the radio button.
but no mater what i do .NET moves it to <SPAN> tag aroung that radio button.

So my
<asp:RadioButton id="chkAllUpdates" cssClass="radio" id="id" runat=server />
end up beign
<span class="radio"><input type=radio....></span>
Which is not the same.
I tried to add attribute in runtime, or set class="radio". It still moves
all atributes to <span> tag.

thanks
George.
 
George said:
I am trying to set class property of the radio button.
but no mater what i do .NET moves it to <SPAN> tag aroung that radio button.

So my
<asp:RadioButton id="chkAllUpdates" cssClass="radio" id="id" runat=server />
end up beign
<span class="radio"><input type=radio....></span>
Which is not the same.
I tried to add attribute in runtime, or set class="radio". It still moves
all atributes to <span> tag.

thanks
George.

The web control for radio button doesn't let you set the class on the
input field. You have to use the html control instead.
 
Back
Top