Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how do i change "class" (style) property on radion button

Reply
Thread Tools

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

 
 
George Ter-Saakov
Guest
Posts: n/a
 
      11-10-2006
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.


 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?G=F6ran_Andersson?=
Guest
Posts: n/a
 
      11-11-2006
George Ter-Saakov wrote:
> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How could I change the NavigateUrl property at runtime based on another controls property ? Radu ASP .Net 2 01-25-2007 10:51 AM
checkbox list and radion button list puja ASP .Net 1 05-21-2006 08:18 AM
radion 9800 Alan Smith Computer Support 2 11-10-2004 12:19 AM
Adding a radion button at run time Robert Bull ASP .Net 3 04-23-2004 05:45 PM



Advertisments