Last post Sep 13, 2008 02:39 PM by jkirkerx
Sep 12, 2008 06:03 PM|AndyBuffaloNY|LINK
I have a control that contains a collection of myClass
myClass contains system types like stings and ints
public list<Validator> MyVals
public bool Required
public string RegEx
public string ErrorMessage
public string controlID
public string blah...
What attribute do I need on my classes and properties to allow me in designer html to do this
<cc1:... MyControl id="mycontrol1">
<Validator Required="True" ErrorMessage="Required" />
<Validator RegEx="%^&" ErrorMessage="Not Valid" />
I can get it to include the <MyVals></MyVals> with intellisense but not the <myClass...> using
What shoud I be using?
Sep 13, 2008 01:32 PM|mcr_subbu|LINK
I am not sure, but I think u need to make your class "class MyControl" as "Public
class MyControl". Please check it.
Sep 13, 2008 02:39 PM|jkirkerx|LINK
You need a control collection
It's pretty complicated to make, and will take you awhile to get it working.
You need an items class file, and a collection editor file, and your control code file to keep it organized.
I have a previous post on how to make one, or you can google the words for some starter code.