Skip to content

Instantly share code, notes, and snippets.

@trapias
Forked from bdukes/skin.ascx
Created July 23, 2013 14:41
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 trapias/6062874 to your computer and use it in GitHub Desktop.
Save trapias/6062874 to your computer and use it in GitHub Desktop.
<%@ 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