Does anyone know how to disable auto parsing of chars such as “>” so that they never show up as “&qt;” when they are displayed in the browser? I thought that it was just related to xml parsing but it appears to be a global issue where VS uses “intelligent” parsing of strings and sometimes displays them as the actual char and sometimes converts them. Any suggestions?
Ex. 1:
C#:
public string kmlStuff = "";
protected void Page_Load(object sender, EventArgs e) {
kmlStuff="]]>";
}
Aspx:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="errorM">
<%=kmlStuff %>
</div>
</asp:Content>
Html of browser output (is wrong):
<div id="errorM">
]]>
</div>
What I want to show up:
<div id="errorM">
]]>
</div>
Ex. 2:
C#:
public string kmlStuff = "";
protected void Page_Load(object sender, EventArgs e) {
kmlStuff="<div></div>";
}
Aspx:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="errorM">
<%=kmlStuff %>
</div>
</asp:Content>
Html of browser output (is right):
<div id="errorM">
<div></div>
</div>
Use this
**Sample:
**