consider 'mainsoft.render.body.content.only'
init parameter.
svn path=/trunk/mcs/; revision=94876
ClientScript.RegisterStartupScript (typeof (Page), "MaintainScrollPositionOnPostBackStartup", script.ToString());
}
+#if TARGET_J2EE
+ if (bool.Parse (WebConfigurationManager.AppSettings [RenderBodyContentOnlyKey] ?? "false")) {
+ for (Control c = this.Form; c != null; c = c.Parent) {
+ HtmlGenericControl ch = (c as HtmlGenericControl);
+ if (ch != null && ch.TagName == "body") {
+ ch.RenderChildren (writer);
+ return;
+ }
+ }
+ }
+#endif
base.Render (writer);
}
#endif
string _callbackEventError = String.Empty;\r
static readonly object CrossPagePostBack = new object ();\r
FacesContext _facesContext;\r
+ const string RenderBodyContentOnlyKey = "mainsoft.render.body.content.only";\r
\r
static readonly java.util.List emptyList = java.util.Collections.unmodifiableList (new java.util.ArrayList ());\r
\r