[Mono-bugs] [Bug 80129][Wis] Changed - 2.0/SVN: using masterpage class from within page code is not possible

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Dec 23 17:45:49 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by grendello at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80129

--- shadow/80129	2006-12-23 14:28:47.000000000 -0500
+++ shadow/80129.tmp.18199	2006-12-23 17:45:49.000000000 -0500
@@ -47,6 +47,17 @@
 testcase
 
 
 ------- Additional Comments From ck at carlo-kok.com  2006-12-23 14:28 -------
 after some testing, I noticed the dll that the MasterPage is in, is
 not referenced when compiling the page dll.
+
+------- Additional Comments From grendello at gmail.com  2006-12-23 17:45 -------
+You should let the page compiler know you're using master pages, by 
+putting the code below at the top of your aspx file:
+
+<%@ Page Language="C#" AutoEventWireup="true"  
+CodeFile="Default.aspx.cs" Inherits="_Default" 
+     MasterPageFile="~/MyMasterPage.master" %>
+<%@ MasterType VirtualPath="~/MyMasterPage.master" %>
+
+Please test and let us know whether it worked


More information about the mono-bugs mailing list