[Mono-bugs] [Bug 77278][Nor] Changed - [2.0] Setting masterpage in OnPreInit causes null reference exceptions when referencing controls on the page

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 27 02:21:53 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 toshok at ximian.com.

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

--- shadow/77278	2006-01-23 15:21:08.000000000 -0500
+++ shadow/77278.tmp.4638	2006-01-27 02:21:53.000000000 -0500
@@ -160,6 +160,13 @@
 runat="server"></asp:contentplaceholder>
 		</div>
 		That's all!
     </form>
 </body>
 </html>
+
+------- Additional Comments From toshok at ximian.com  2006-01-27 02:21 -------
+So it seems that the content templates aren't being re-applied to the
+new MasterPage - the NRE is from the reference to lblHelloWeb, which
+is in a content template.
+
+I've got a patch that fixes the problem, dunno how pretty it is..


More information about the mono-bugs mailing list