Custom Modules

Snippets

DotNetNuke Custom Modules

26
public string CreatedByUserName { get { if (createdByUserName == null) { int portalId = PortalController.Instance.GetCurrentPortalSetti...

[Read the rest of this article...]

DNN UserController
24
Check if a DNN TrueFalse (bool) profile property exists and if it doesn't create a new one USE: CheckProfilePropertyExistsTrueFalse("Do...

[Read the rest of this article...]

DNN User Profile
11
In the designer.cs file OLD . . .  // protected global::DotNetNuke.UI.WebControls.DnnCssInclude DnnCssInclude1; NEW . . .  prote...

[Read the rest of this article...]

DnnCssInclude
26
// GET MODULE SETTINGS var mc = new ModuleController(); var mi = mc.GetModule(1534); var tSettings = mi.ModuleSettings;    &nbs...

[Read the rest of this article...]

Posted in: Custom Modules
11
DotNetNuke.Security.Roles.RoleController rolesController = new DotNetNuke.Security.Roles.RoleController(); UserRoleInfo role = rolesController.GetUse...

[Read the rest of this article...]

DNN User Roles
25
                    ListItem lisource = ddlDonationSour...

[Read the rest of this article...]

Dropdown list
15
Add a stylesheet from custom DNN module settings HtmlGenericControl css1 = new HtmlGenericControl("link"); css1.Attributes["type&qu...

[Read the rest of this article...]

css, stylesheet, DNN Module Settings
29
        <asp:TemplateField HeaderText="Bike Raffle*" ItemStyle-HorizontalAlign="Center" >...

[Read the rest of this article...]

GridView, TemplateField
04
DNN now returns the long state name when using DotNetNuke.Entities.Users.UserInfo . . . Here's an easy workaround for returning the 2 letter stat...

[Read the rest of this article...]

State Name, State Code
25
<asp:TemplateField HeaderText="Frequency"> <ItemTemplate> <asp:Label ID="lblFrequency" runat="server" Text='<%# GetFrequencyLook...

[Read the rest of this article...]

GridView, Function
Page 2 of 4First   Previous   1  [2]  3  4  Next   Last