building asp.net tag string for output
Posted on 2002-05-16
inside a codebehind file i build a string containing the <asp:xml> tag... with attributes inside etc.
then output that string in .aspx page as <%=strASPTag%>
the problem is that it is not resolving the tag... it just prints it out as plain text!
the string is being set like this in the codebehind:
strASPTag = "<ASP:XML ID='XMLContent' DOCUMENTSOURCE='../Foo.xml' TRANSFORMSOURCE='../Foo.xslt' RUNAT='server' />";
should i be using double-quotes instead of singles? if so, do i need to use some escape character?