[Mono-bugs] [Bug 662918] New: Setting Page.Title on an ASPX page does nothing.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Jan 7 02:20:57 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=662918
https://bugzilla.novell.com/show_bug.cgi?id=662918#c0
Summary: Setting Page.Title on an ASPX page does nothing.
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: pruiz at netway.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=407334)
--> (http://bugzilla.novell.com/attachment.cgi?id=407334)
Sample proyect demostrating the issue. (Developed with monodevelop)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
Setting an ASPX page title programatically (ie. Page.Title = "..") does not
work, it looks like it never reaches ASP.NET pipeline's output.
As an example, the following code emits a valid 'head/title' node on MS.NET,
but fails to do so on mono (2.8 and git's master):
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type="text/javascript">
// some code..
</script>
<%
this.Title = "This is a page title";
%>
</head>
<body>
<div>
<%= Html.Encode(ViewData["Message"]) %>
</div>
</body>
Reproducible: Always
Steps to Reproduce:
1. Create an ASPX page.
2. Set Page.Title from within page's head section.
3. Execute page from a browser (using for example xsp as server)
4. Check generated HTML code which misses Title node.
Actual Results:
No head/title node generated.
Expected Results:
head/title node generated as it happends on MS.NET.
Attached you can find a sample web proyect reproducing the issue.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list