Cannot create an object of type 'System.Boolean'...?

Discussion in 'ASP .Net' started by Guest, Sep 6, 2006.

  1. Guest

    Guest Guest

    Hi,

    I have placed some HTML Input (Radio) controls on my ASP.NET page using
    VS.NET 2005.
    After I have set these controls to "Run as server control" and try to run my
    page I am receiving the error:

    "Cannot create an object of type 'System.Boolean' from its string
    representation 'checked' for the 'Checked' property."


    Thanks in Advanced for any help,
    Asaf
     
    Guest, Sep 6, 2006
    #1
    1. Advertisements

  2. Look in your HTML it should be something like

    <input type="radio" runat=server checked=1>

    I believe you only have checked there without assigning 1 to it.

    George
     
    George Ter-Saakov, Sep 6, 2006
    #2
    1. Advertisements

  3. Guest

    Guest Guest

    Thanks for your help Geroge.

    Regards,
    Asaf

     
    Guest, Sep 6, 2006
    #3
  4. Guest

    luandk91

    Joined:
    Jan 19, 2012
    Messages:
    1
    Likes Received:
    0
    Help me

    <td style="width: 160px; height: 26px; text-align: left;">
    Giới tính</td>
    <td style="width: 141px; height: 26px;">
    &nbsp;<input id="Nam" name="Phai" style="width: 30px" type="radio" checked="CHECKED" runat="server" />Nam
    <input id="Nu" name="Phai" style="width: 34px" type="radio" runat="server" />Nữ</td>


    Error: checked=" CHECKED"
    ...
    Help me.
    Thanks
     
    luandk91, Jan 19, 2012
    #4
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...