How to add Attributes in <asp:CheckBox> ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Liu Xuesong

    How to add Attributes in <asp:CheckBox> ?

    I want to add Attributes into CheckBox in .aspx page

    <html>
    <asp:CheckBox id="ChapterChec k" runat="server" />
    </html>

    How to add Attributes in <asp:CheckBox > ?
  • Sreejumon[MVP]

    #2
    Re: How to add Attributes in &lt;asp:CheckBo x&gt; ?

    Hi Liu,

    Have you tried ChapterCheck.At tributes.Add("o nclick", "validate() ;"); inside PageLoad ?
    Please refer the ckeckboxlist control too.

    --
    Let me know if you need further help

    Regards
    Sreejumon[MVP]
    DOTNET makes IT happen

    "Liu Xuesong" <xuesong@xinhua net.com> wrote in message news:uAZZiIfPDH A.4024@tk2msftn gp13.phx.gbl...
    I want to add Attributes into CheckBox in .aspx page

    <html>
    <asp:CheckBox id="ChapterChec k" runat="server" />
    </html>

    How to add Attributes in <asp:CheckBox > ?

    Comment

    Working...