C
cpnet
Sorry, this is a 2nd post related to this problem, but I've now set up my
MSDN e-mail id, so I wanted to post with this e-mail.
I'm trying to build some custom controls/components for use with ASP.NET.
I have ControlParent (I've tried this where ControlParent is a Control, and
also where it's a WebControl descendent) and ComponentChild (a Component
descendent). ControlParent has a ControlParent.ComponentChild property.
In the designer, I drop both a ControlParent and ComponentChild on a
WebForm. ComponentChild1 is listed in the dropdown for
ControlParent1.ComponentChild in the designer. I can set
ControlParent1.ComponentChild to ComponentChild1, and everything seems good.
When I look at the HTML from my WebForm, I see ComponentChild1 listed as an
attribute for my ControlParent1 control.
However, if I rebuild my project, or close and reopen my WebForm, the
ControlParent1.ComponentChild property is blank in the property pane of the
designer. ComponentChild1 is still available in the dropdown, but it's no
longer assigned (in the property pane). In the HTML, ComponentChild1 IS
still assigned to ControlParen1.CompnentChild.
I've tried messing around with TypeConverters and ControlDesigners, but
haven't had any luck yet. I'm not sure what to do.
I've also tried to get help at www.asp.net here
http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=539207, but so far
I can't figure this out.
Thanks,
Chris
MSDN e-mail id, so I wanted to post with this e-mail.
I'm trying to build some custom controls/components for use with ASP.NET.
I have ControlParent (I've tried this where ControlParent is a Control, and
also where it's a WebControl descendent) and ComponentChild (a Component
descendent). ControlParent has a ControlParent.ComponentChild property.
In the designer, I drop both a ControlParent and ComponentChild on a
WebForm. ComponentChild1 is listed in the dropdown for
ControlParent1.ComponentChild in the designer. I can set
ControlParent1.ComponentChild to ComponentChild1, and everything seems good.
When I look at the HTML from my WebForm, I see ComponentChild1 listed as an
attribute for my ControlParent1 control.
However, if I rebuild my project, or close and reopen my WebForm, the
ControlParent1.ComponentChild property is blank in the property pane of the
designer. ComponentChild1 is still available in the dropdown, but it's no
longer assigned (in the property pane). In the HTML, ComponentChild1 IS
still assigned to ControlParen1.CompnentChild.
I've tried messing around with TypeConverters and ControlDesigners, but
haven't had any luck yet. I'm not sure what to do.
I've also tried to get help at www.asp.net here
http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=539207, but so far
I can't figure this out.
Thanks,
Chris