Skip to content

Instantly share code, notes, and snippets.

@devfred
Last active October 6, 2015 06:18
Show Gist options
  • Save devfred/2949729 to your computer and use it in GitHub Desktop.
Save devfred/2949729 to your computer and use it in GitHub Desktop.
csharp: Tiny boilerplate for compiled dnn controls/module
<%@ Control language="C#" Inherits="CW.Modules.ModuleName.View" Codebehind="View.ascx.cs" AutoEventWireup="true"%>
<div class="module">
<asp:BulletedList ID="list" runat="server" />
</div><!-- end .xmp-kit-installer-->
using System;
using System.IO;
using System.Xml;
using System.Web;
using System.Web.UI.HtmlControls;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Definitions;
using System.Web.UI.WebControls;
using System.Collections;
/**
@namespace CW.Modules.ModuleName
**/
namespace CW.Modules.ModuleName
{
/**
Partial class to declare ascx controls.
Normally this would be autogenerated and placed in a designer file, but
unfortunately this VS feature is not obvious in SharpDevelop
@class View
@partial
**/
public partial class View {
protected BulletedList list = new BulletedList();
}
/**
View class for module
@class View
@extends PortalModuleBase
@partial
**/
public partial class View : PortalModuleBase
{
#region "Class Members"
#endregion
#region "Event Handlers"
#endregion
#region "Class Methods"
#endregion
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment