Created
August 7, 2012 15:51
-
-
Save hereswhatidid/3286561 to your computer and use it in GitHub Desktop.
Add class to outer div in DotNetNuke containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ 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