Knowledge Base

Snippets

Entries for 2014

27
using DotNetNuke.Entities.Profile; string _value = GetUserProfilePropertyValue("MyCustomProfileField").ToString(); public string GetUserProf...

[Read the rest of this article...]

DNN, ProfileProperty
23
public void SetPageName(string PageName) { try { DotNetNuke.Framework.CDefault CustomPageName = (D...

[Read the rest of this article...]

DNN
Posted in: DNN, Custom Modules
16
Select ISNULL(NULLIF(GIBS_FBLineItems.ReportType, ''), '--Undefined--') as ReportType from GIBS_FBLineItems SQL
02
Solved on IIS7.Issue is in the web config the <modules tag needs to be changed to the following: <system.webServer>    <mod...

[Read the rest of this article...]

DNN, IIS 7
Posted in: DNN, Web.Config
06
public void GetPreviousAgents(string _AgentRole) { try { DotNetNuke.Security.Roles.RoleController objRoleController = new DotNetNuke.Securit...

[Read the rest of this article...]

DNN, GetUsersByRoleName, C#
27
#Body { background-image: url(/Portals/2/bg1.jpg);background-size: cover !important; background-attachment: fixed;}
Posted in: CSS, DNN
24
Area code with dashes, 1 and + sign <a href="tel:+1-555-555-1212">555-555-1212</a> Hyperlink Phone Number
Posted in: Web Design
24
protected override void OnInit(EventArgs e) { base.OnInit(e); JavaScript.RequestRegistration(CommonJs....

[Read the rest of this article...]

14
UPDATE UserPortals SET IsDeleted = 1 WHERE (UserId > 5) SQL Script
Posted in: DNN
12
COALESCE (Transact-SQL)
Page 2 of 3First   Previous   1  [2]  3  Next   Last