C
Christopher Strolia-Davis
I've searched in vain to find the answer to this question, so hopefully
someone can help me.
I am creating a web custom control that will have other nested content. I
have set parseChildren attribute to false, so I can embed the content in my
finished output. When the control has been placed in my page, if I go to
design view and change a property, when I move back to HTML view, all content
between the opening and closing tags is removed.
for instance, if I have code like:
<mc:MyControl MyAttribute='Something'>
<ul>
<li>some text</li>
</ul>
</mc:MyControl>
if I go to design view and change "MyAttribute" to "Something Else" and
return to
HTML view I get
<mc:MyControl MyAttribute='Something Else'>
</mc:MyControl>
All the code inside the control is lost.
Is there some sort of property or setting that I need to change to make sure
that this doesn't happen?
someone can help me.
I am creating a web custom control that will have other nested content. I
have set parseChildren attribute to false, so I can embed the content in my
finished output. When the control has been placed in my page, if I go to
design view and change a property, when I move back to HTML view, all content
between the opening and closing tags is removed.
for instance, if I have code like:
<mc:MyControl MyAttribute='Something'>
<ul>
<li>some text</li>
</ul>
</mc:MyControl>
if I go to design view and change "MyAttribute" to "Something Else" and
return to
HTML view I get
<mc:MyControl MyAttribute='Something Else'>
</mc:MyControl>
All the code inside the control is lost.
Is there some sort of property or setting that I need to change to make sure
that this doesn't happen?