J
jesl
Group,
I have created a User Control with the property "Html" of type string.
If I declare this control on an ASPX page with the value "<b>This is an
entity: <</b>" for the property "Html", the ASP.NET parser seems to
automatically convert the entity reference "<" to it's corresponding
character value "<".
For example, if the tagprefix and tagname for the user control is "dn"
and "test":
<dn:test Html="<b>This is an entity: <</b>" id="test" runat="server"
/>
.... this will result in a "Html" value of:
"<b>This is an entity: <</b>"
Why does this happen? It is quite annoying because I need to preserve
the entity reference. Is there any way to preserve entity references in
properties of type string when these are specified declaratively?
Thank you!
I have created a User Control with the property "Html" of type string.
If I declare this control on an ASPX page with the value "<b>This is an
entity: <</b>" for the property "Html", the ASP.NET parser seems to
automatically convert the entity reference "<" to it's corresponding
character value "<".
For example, if the tagprefix and tagname for the user control is "dn"
and "test":
<dn:test Html="<b>This is an entity: <</b>" id="test" runat="server"
/>
.... this will result in a "Html" value of:
"<b>This is an entity: <</b>"
Why does this happen? It is quite annoying because I need to preserve
the entity reference. Is there any way to preserve entity references in
properties of type string when these are specified declaratively?
Thank you!