Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Cannot create an object of type 'System.Boolean'...?

Reply
Thread Tools

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

 
 
=?Utf-8?B?QXNhZg==?=
Guest
Posts: n/a
 
      09-06-2006
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

 
Reply With Quote
 
 
 
 
George Ter-Saakov
Guest
Posts: n/a
 
      09-06-2006
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



"Asaf" <> wrote in message
news:586B60E8-D79F-4C2D-8A68-...
> 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
>



 
Reply With Quote
 
 
 
 
=?Utf-8?B?QXNhZg==?=
Guest
Posts: n/a
 
      09-06-2006
Thanks for your help Geroge.

Regards,
Asaf

"George Ter-Saakov" wrote:

> 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
>
>
>
> "Asaf" <> wrote in message
> news:586B60E8-D79F-4C2D-8A68-...
> > 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
> >

>
>
>

 
Reply With Quote
 
luandk91 luandk91 is offline
Junior Member
Join Date: Jan 2012
Posts: 1
 
      01-19-2012
<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
 
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
Cannot create an object of type 'CustomWizard' from its string representation... Allan Ebdrup ASP .Net 1 07-16-2007 12:06 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
Cannot create an object of type 'System.String[]' from its representation 'String[] Array' Hessam ASP .Net Building Controls 1 08-16-2003 10:26 AM
Cannot create an object of type 'System.String[]' from its representation 'String[] Array' Hessam ASP .Net Web Controls 0 08-08-2003 08:36 AM
Cannot create an object of type 'System.String[]' from its representation 'String[] Array' Hessam ASP .Net 0 08-08-2003 08:36 AM



Advertisments