Knowledge Base

Snippets

20
function SetCookie(cookieName, cookieValue, nDays) { var today = new Date(); var expire = new Date(); if (nDays == null || nDays == 0) ...

[Read the rest of this article...]

JavaScript
17
Place the following code in the HEAD of the html: P.pagebreakhere {page-break-before: always} Then place the following code in the BODY of the...

[Read the rest of this article...]

Posted in: CSS
24
Get a list of the database names and database size in a sql server instance using tsql: EXEC sp_databases sp_databases
08
Try running . . . . exec sp_updatestats; SQL, DNN
30
function OpenDialog(url, height, width, title) { var vurl = url; var vheight = height; var vwidth = width; var v...

[Read the rest of this article...]

DNN, jQuery, modal
Posted in: DNN, Custom Modules
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#
Page 11 of 34First   Previous   6  7  8  9  10  [11]  12  13  14  15  Next   Last