Created
May 24, 2012 19:45
-
-
Save bdukes/2783797 to your computer and use it in GitHub Desktop.
DNN Meta Skin Object example
This file contains hidden or 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" Inherits="DotNetNuke.UI.Skins.Skin" %> | |
<%@ Register TagPrefix="dnn" TagName="Meta" Src="~/Admin/Skins/Meta.ascx" %> | |
<script runat="server"> | |
private void Page_PreRender(object sender, EventArgs e) { | |
var metaRobots = Page.FindControl("MetaRobots") as HtmlMeta; | |
if (metaRobots != null) { | |
metaRobots.Visible = false; | |
} | |
} | |
</script> | |
<dnn:Meta runat="server" Name="robots" Content="noindex" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment