My master page has the <!DOCTYPE>
and <head>
section as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>CMIS</title>
<link href="~/Site.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
In a MyControl.ascx (FieldTemplateUserControl) I have:
<iframe id="Iframe1" runat="server" src="<%# GetNavigateUrl() %>" width="600" height="400">
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="<%# GetNavigateUrl() %>" Target="_blank" Text="View" />
</iframe>
The HTML output of above on a rendered page is as follows:
<iframe id="ContentPlaceHolder1_FormView1_ctl04_ctl05___HelpHtml_Iframe1" width="600" height="400" src="/CMIS/Special/OutputHtml.aspx?Table=UserChecklist&Id=67">
<a id="ContentPlaceHolder1_FormView1_ctl04_ctl05___HelpHtml_HyperLink2" href="/CMIS/Special/OutputHtml.aspx?Table=UserChecklist&amp;Id=67" target="_blank">View</a>
</iframe>
Surely the contents of the <iframe>
shouldn't be HTML encoded? Is this an ASP.net bug?
How can I stop this from happening?
EDIT: Sorry this is something to do with CsQuery (a DLL which is rendering the HTML)