I found an issue with how ASPDNSF reads the master page file.
I added the following into the head section of the master page....
Code:
<script type="text/javascript">
<!--
function openWindow(URL, windowName, windowFeatures) {
newWindow = window.open(URL, "windowName", windowFeatures);
newWindow.document.write('<html><head><title>' + windowName + '</title></head><body bgcolor=ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0><img src=' + URL + '></img></body></html>');
}
//-->
</script>
And received the following error:
Code:
Page URL:/t-media.aspx
Source:System.Web
Message:You can only have one <title> element within the <head> element.
Stack Trace:
at System.Web.UI.HtmlControls.HtmlHead.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at System.Web.UI.Control.AddParsedSubObject(Object obj)
at System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj)
at ASP.app_templates_skin_1_company_master.__BuildControlHead1() in c:\client_sites\kingmotorsports\trunk\Web\App_Templates\Skin_1\company.master:line 11
at ASP.app_templates_skin_1_company_master.__BuildControlTree(app_templates_skin_1_company_master __ctrl) in c:\client_sites\kingmotorsports\trunk\Web\App_Templates\Skin_1\company.master:line 1
at ASP.app_templates_skin_1_company_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\5ceed925\c87284a1\App_Web_-g4ybsy7.7.cs:line 0
at System.Web.UI.UserControl.InitializeAsUserControlInternal()
at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
at System.Web.UI.Page.get_Master()
at System.Web.UI.Page.ApplyMasterPage()
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
ASPDNSF seems to be judging html tags even when they are included in javascript, so to test this i added seperation in the tags(code below) and it worked fine.
Code:
<script type="text/javascript">
<!--
function openWindow(URL, windowName, windowFeatures) {
newWindow = window.open(URL, "windowName", windowFeatures);
newWindow.document.write('<ht' + 'ml><he' + 'ad><tit' + 'le>' + windowName + '</tit' + 'le></he' + 'ad><bo' + 'dy bgcolor=ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0><img src=' + URL + '></img></bo' + 'dy></ht' + 'ml>');
}
//-->
</script>