[Mono-bugs] [Bug 449970] New: Masterpages / ContentPlaceHolder in UpdatePanel not found
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 28 04:38:46 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=449970
User markusreg at freenet.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=449970#c325114
Summary: Masterpages / ContentPlaceHolder in UpdatePanel not
found
Product: Mono: Class Libraries
Version: 2.0.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: markusreg at freenet.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Description of Problem:
If an ASP.NET masterpage contains at least two ContentPlaceHolders and one of
them is placed within an Ajax UpdatePanel and the other outside, an exception
will be thrown when the placeholders are referenced from a page.
Mono 1.9.1 does not have this problem, so this is a regression.
Steps to reproduce the problem:
1. Create a masterpage
2. Put an UpdatePanel inside the masterpage along with a ScriptManager
3. Put a ContentPlaceHolder in the ContentTemplate of the UpdatePanel
4. Put another ContentPlaceHolder anywhere else, say in the head of the
masterpage
5. Create an .aspx page that references this masterpage
6. Put two Content sections in that page that point to the corresponding
ContentPlaceHolder
7. Navigate to the web page
Actual Results:
You will get the following exception:
Cannot find ContentPlaceHolder 'ContentPlaceHolderPage' in the master page
'~/MyMaster.master'
Description: HTTP 500. Error processing request.
Stack Trace:
System.Web.HttpException: Cannot find ContentPlaceHolder
'ContentPlaceHolderPage' in the master page '~/MyMaster.master'
at System.Web.UI.MasterPage.CreateMasterPage (System.Web.UI.TemplateControl
owner, System.Web.HttpContext context, System.String masterPageFile,
IDictionary contentTemplateCollection) [0x00000]
at System.Web.UI.Page.get_Master () [0x00000]
at System.Web.UI.Page.ApplyMasterPage () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000]
Expected Results:
The page should display without any errors.
How often does this happen?
Always
Additional Information:
Note that the exception is thrown only if one ContentPlaceHolder is placed
inside the UpdatePanel and another outside. If all ContentPlaceHolders are
placed within an UpdatePanel, no error occurs.
I suppose this bug was introduced with the bugfix of #325114. Mono 1.9.1 does
not seem to check the placeholder matching at all, so the problem does not show
in that version.
--
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