R
Ryan Ternier
I have an ASP page that needs to pass a string object full of HTML to a .NET
iframe within that page.
The String might be over 5000 characters of HTML.
Reason we're doing this is to incorporate our HTML editor in our Portal
Software. Currently it works perfect with regular strings, but once you get
a well formed XHTML document in there, it bombs out.
This is what I'm currently using:
<iframe width="100%" height="88%"
src="ContentEditor.aspx?Content=<%=strContentBody%>"></iframe>
I also tried:
<iframe width="100%" height="88%"
src="ContentEditor.aspx?Content=<%=Server.HTMLEncode(strContentBody)%>"></iframe>
But both generate errors on the .NET side:
A potentially dangerous Request.QueryString value was detected from the
client (Content="<TABLE cellSpacing=0..."). .
Any help would be greatly appreciated. I want to get this done before I
leave for Christmas holidays.
iframe within that page.
The String might be over 5000 characters of HTML.
Reason we're doing this is to incorporate our HTML editor in our Portal
Software. Currently it works perfect with regular strings, but once you get
a well formed XHTML document in there, it bombs out.
This is what I'm currently using:
<iframe width="100%" height="88%"
src="ContentEditor.aspx?Content=<%=strContentBody%>"></iframe>
I also tried:
<iframe width="100%" height="88%"
src="ContentEditor.aspx?Content=<%=Server.HTMLEncode(strContentBody)%>"></iframe>
But both generate errors on the .NET side:
A potentially dangerous Request.QueryString value was detected from the
client (Content="<TABLE cellSpacing=0..."). .
Any help would be greatly appreciated. I want to get this done before I
leave for Christmas holidays.