I have created a custom control from scratch and it works fine as in you can build the project that uses it and it works fine at runtime. Problem is when you go to design view the control shows an error in the place of where the control should be rendered.
Error: '<SomeValue>' Could not be set to '<SomeProperty>'
This shows up on all my custom set properties. These properties are created as basic as possible. I can give the properties values in Source view and run the app just fine. I can even add a Onclick event. If I don't set any custom properties the control will render fine in Design view. It's only when I set a value to a custom property.
Property Code Example:
public string Text
string ret = "";
object obj = ViewState["Text"];
if (obj != null)
ret = obj.ToString();
ViewState["Text"] = value;
I've even removed the Category and Description tags with no difference.
I don't know if what I said makes sens, but I hope it
View Complete Post