Skip to content

Instantly share code, notes, and snippets.

@hereswhatidid
Created August 7, 2012 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hereswhatidid/3286561 to your computer and use it in GitHub Desktop.
Save hereswhatidid/3286561 to your computer and use it in GitHub Desktop.
Add class to outer div in DotNetNuke containers
<%@ Control language="c#" AutoEventWireup="true" Explicit="True" Inherits="DotNetNuke.UI.Containers.Container" %>
<%@ Register TagPrefix="dnn" TagName="TITLE" Src="~/Admin/Containers/Title.ascx" %>
<script runat="server">
protected void Page_PreRender(object sender, EventArgs e) {
try {
HtmlGenericControl cParent = (HtmlGenericControl) this.Parent;
cParent.Attributes["class"] += " tab";
} catch (Exception ex) {
// do nothing
}
}
</script>
<div class="title">
<h4>
<dnn:TITLE runat="server" CssClass=" " />
</h4>
</div>
<div runat="server" CssClass="content" id="ContentPane" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment