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

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.
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

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.
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top