This project is read-only.

Does not work with MasterPage

Feb 4, 2008 at 3:05 PM
Edited Feb 4, 2008 at 3:11 PM
The OnPreRender method fails when using MasterPages. The following code (in OnPreRender) fixes it:

if (xhtmlstrict) {
LiteralControl head;
if (Page.Master == null)
head = Page.Controls[0] as LiteralControl;
else
head = Page.Controls[0].Controls[0] as LiteralControl;
....
....