K
KCS
Hi. I have a vs2005 custom web control. It uses a designer inherited from
ControlDesigner. The designer writes an XML value as a string property into
the control which the IDE inserts into the HTML source.
Example: <myControl MyAttribute="<RootNode><SubNode> ... representing a
potentially long piece of XML" />
In vs2003, 'myAttribute' gets automatically split into several lines if it
is long.
In vs2005, 'myAttribute' is all on the one line.
How do I get the html to be spread over multiple lines?
Example: <myControl MyAttribute="<RootNode>
<SubNode>
more XML" />
I tried using 'GetPersistenceContent' but I think this is only for use when
the control renders and not when changing property values. Note the attribute
value is in quotes so you cannot insert crlf's as these get changed into
escaped values.
Thanks
ControlDesigner. The designer writes an XML value as a string property into
the control which the IDE inserts into the HTML source.
Example: <myControl MyAttribute="<RootNode><SubNode> ... representing a
potentially long piece of XML" />
In vs2003, 'myAttribute' gets automatically split into several lines if it
is long.
In vs2005, 'myAttribute' is all on the one line.
How do I get the html to be spread over multiple lines?
Example: <myControl MyAttribute="<RootNode>
<SubNode>
more XML" />
I tried using 'GetPersistenceContent' but I think this is only for use when
the control renders and not when changing property values. Note the attribute
value is in quotes so you cannot insert crlf's as these get changed into
escaped values.
Thanks