Custom Modules

Snippets

DotNetNuke Custom Modules

23
private string GetDisplayName(int PortalId, int UserId) {     string UserDisplayName = "";     DotNetNuke.E...

[Read the rest of this article...]

DNN, DisplayName
02
Get a list of states using the DNN Lists public void GetDropDownListStates() {  try  {   // Get State Dropdown from DNN...

[Read the rest of this article...]

ListController()
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
Page 2 of 5First   Previous   1  [2]  3  4  5  Next   Last