Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > '' Could not be set on Property ''

Reply
Thread Tools

'' Could not be set on Property ''

 
 
Guest
Posts: n/a
 
      03-01-2005
This error seems to be sprinkled all across google and all across the
newsgroups however there do not appear to be any solidified answers.

Here is my scenario.
I have a Web User Control that contains several properties that are of a
custom class.
This Class Contains multiple properties some of which include Arrays
(say SqlParameter) for example.

My Markup should look something like. I am having major designer
difficulties however both of which result in the infamous error " '' Could
not be set onproperty ''" whichin this case is an empty value on the
FillList property.
I have tried various combos of putting PersistChildren and ParseChildren to
no avail

<cc2:WebCustomControl1 id="WebCustomControl11" runat="server">

<FillList CommandName="asfsadf" ParameterName="sdafas">

<Parameters>

<cc3qlParameter ParameterName="@Retail"></cc3qlParameter>

</Parameters>

</FillList>

</cc2:WebCustomControl1>



The Property Fill list is marked as
Bindable(true),

Category("SQL Properties"),

PersistenceMode(PersistenceMode.InnerProperty),

NotifyParentProperty(true),

DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]

public DataParameters FillList

{

get { return gFillList; }

set { gFillList = value; }

}



My structure is marked as such and the collection in question
[TypeConverter(typeof(ExpandableObjectConverter)),

Browsable(true),

RefreshProperties(RefreshProperties.Repaint),

Serializable(),

ToolboxItem(false)]

public class DataParameters

{

[PersistenceMode(PersistenceMode.InnerProperty),

DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]

public ArrayList Parameters

{

get { return gParameters; }

set { gParameters = value; SetParameters(value); }

}

}




 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      03-03-2005
Hi Recoil,

Thanks for your posting. Regarding on this issue, I've also found your
another thread in this group. I've posted my reply there ,I'd appreciate if
you have a look there. Also, if you feel it convenient that we continue to
followup in that post, please feel free to post there. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
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
<value> could not be set on property <property name> TonyDyer General Computer Support 0 02-14-2012 03:25 PM
'True' could not be set on property PJ6 ASP .Net 4 10-09-2007 02:40 PM
Could not find a property named '... ' on the type specified by the DataObjectTypeName property in ObjectDataSource '...' Anabela Silva ASP .Net 0 11-01-2006 07:08 PM
ASP.net 2.0 Custom Web Control Problem "could not be set on property " Adam Rogas ASP .Net Building Controls 0 09-14-2004 11:34 PM
'property value' could not be set on property 'propertyname' KJ ASP .Net Web Controls 0 08-26-2003 06:08 PM



Advertisments