473,383 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

'' Could not be set on property 'Items' - Error

Sorry if this is not the correct group i could not see one for web controls

Hello

I am trying to write a cutom web control, The control contains a customer
collection that i want to use the Collection Editor in properties to add
members to this collection.

In design mode the control works correctly but when i run the application
the control in the designer swaps to a "Error creating Control" gray box,
but it seems to display correctly in the web browser

Im fairly new to this so not sure what people would like to see to help me -
but shout and i send something

Thanks in advance,

Nov 21 '05 #1
2 5144
I have foud the problem it was due to the Items property being read/write

so the property definition should be

<DesignerSerializationVisibility(DesignerSerializa tionVisibility.Content), _
PersistenceMode(PersistenceMode.InnerProperty), _
Bindable(True), Category("Appearance")> ReadOnly Property Items() As
TableDef.ItemsCol
Get
Return mobjTable.Items
End Get
End Property

"Murray" <mu********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Sorry if this is not the correct group i could not see one for web
controls

Hello

I am trying to write a cutom web control, The control contains a customer
collection that i want to use the Collection Editor in properties to add
members to this collection.

In design mode the control works correctly but when i run the application
the control in the designer swaps to a "Error creating Control" gray box,
but it seems to display correctly in the web browser

Im fairly new to this so not sure what people would like to see to help
me -
but shout and i send something

Thanks in advance,

Nov 21 '05 #2
Here is a web control property
<Bindable(True), Category("PROPERTY CATEGORY"), DefaultValue("")> Property
[NAME]() As Integer
Get
Return NAME
End Get
Set(ByVal Value As Integer)
NAME = Value
End Set
End Property
"Murray" <mu********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Sorry if this is not the correct group i could not see one for web
controls

Hello

I am trying to write a cutom web control, The control contains a customer
collection that i want to use the Collection Editor in properties to add
members to this collection.

In design mode the control works correctly but when i run the application
the control in the designer swaps to a "Error creating Control" gray box,
but it seems to display correctly in the web browser

Im fairly new to this so not sure what people would like to see to help
me -
but shout and i send something

Thanks in advance,

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
0
by: ~~~ .NET Ed ~~~ | last post by:
I am having problems getting this webcontrol working properly. Everything else works fine except having items. So here is the low-down on the control: 1. The control class is declared as shown...
1
by: Friskusen | last post by:
I have (almost) added a simple Toolbar custom control to my control library. The Items on the toolbar are implemented in a class named ToolbarItem. I also use a class ToolbarItemCollection to...
0
by: Rene Aichinger | last post by:
Hi, I've created a server control (it inherits from WebControl) wich has a property of genertic collection type. The type of the generic collection is NavigationItem, a little class I've...
1
by: g | last post by:
I have a user control that contains a dropdownlist. Using a public property, I can get the selected item. However, I am unsure of how to use that same public property to set the selected item. ...
1
by: shapper | last post by:
Hello, I am creating a control which I will compile in a class. I am having problems when I use a property in the View State: ' Items <Bindable(True), Category("Data"), DefaultValue(""),...
18
by: Academia | last post by:
I let the use modify the text of a combobox and then I replace the selected item with the new text (in Keyup event). But if he sets the Text property to an empty string ("") that sets the...
17
by: eranil84 | last post by:
I get this "The LinkMasterFields Property setting has produced this error: 'A problem occurred while Microsoft Office Access was communicating with the OLE server or ActiveX Control' " error message...
4
by: infomage27 | last post by:
I have tried scripting this with rules and VBA, now trying with C# but still failing. (code is exploratory, so please excuse the terribleness) maybe someone here will show me the error of my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.