Skip to content

Instantly share code, notes, and snippets.

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 barryokane/b9be53b3381c18773c49 to your computer and use it in GitHub Desktop.
Save barryokane/b9be53b3381c18773c49 to your computer and use it in GitHub Desktop.
An example User Control used for "Load control after installation" when creating an Umbraco package. (See http://issues.umbraco.org/issue/U4-7471)
<%@ Control Language="C#" AutoEventWireup="true" Inherits="uWhiteLabel.Install.InstallControl" %>
<div>
<h3>uWhiteLabel Installed Successfully!</h3>
</div>
<hr />
<div>
<p class="umb-abstract">Instructions</p>
<ol>
<li>...more stuff here...</li>
</ol>
</div>
using System;
namespace uWhiteLabel.Install
{
public class InstallControl : System.Web.UI.UserControl
{
protected string Test;
protected void Page_Load(object sender, EventArgs e)
{
//you could do stuff here if you wanted
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment