Knowledge Base

Snippets

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)
12
/*stop fading on hover in edit mode*/ .dnnEditState .DnnModule { opacity: 1.0; }
22
Server.MapPath specifies the relative or virtual path to map to a physical directory. Server.MapPath(".") returns the current physica...

[Read the rest of this article...]

Posted in: C Sharp - C#
17
Note that you must define a login page in the Admin/Site Settings module. if (!IsPostBack) { if (UserId == -1) { Response.Redirect(Globals....

[Read the rest of this article...]

13
protected static string GenerateQueryStringParameters(HttpRequest request, params string[] queryStringKeys) { StringBuilder quer...

[Read the rest of this article...]

25
public string AddSpaceAfterComma(string myInput) { try { String text = myInput.ToString(...

[Read the rest of this article...]

string function, Regex
Posted in: C Sharp - C#
10
public static DateTime GetFirstDayOfNextMonth(DateTime startDate) { if (startDate.Month == 12) // its end of year , we need ...

[Read the rest of this article...]

16
UserInfo u = new UserInfo(); u = UserController.GetUserById(PortalId, DnnUserId);            ...

[Read the rest of this article...]

Posted in: DNN, Custom Modules
Page 11 of 33First   Previous   6  7  8  9  10  [11]  12  13  14  15  Next   Last