Last active
October 6, 2015 06:18
-
-
Save devfred/2949729 to your computer and use it in GitHub Desktop.
csharp: Tiny boilerplate for compiled dnn controls/module
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#" 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--> |
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
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