• Login

Snippets


Custom Modules

DotNetNuke Custom Modules

NO Image:
27
using DotNetNuke.Entities.Profile; string _value = GetUserProfilePropertyValue("MyCustomProfileField").ToString(); public string GetUserProfil...

[Read the rest of this article...]

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

[Read the rest of this article...]

DNN
Posted in: DNN, Custom Modules
06
public void GetPreviousAgents(string _AgentRole) { try { DotNetNuke.Security.Roles.RoleController objRoleController = new DotNetNuke.Security.Rol...

[Read the rest of this article...]

DNN, GetUsersByRoleName, C#
24
protected override void OnInit(EventArgs e) { base.OnInit(e); JavaScript.RequestRegistration(CommonJs.jQue...

[Read the rest of this article...]

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

[Read the rest of this article...]

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

[Read the rest of this article...]

Posted in: DNN, Custom Modules
08
<asp:Button ID="Button1" runat="server" Text="Delete All Users" onclick="Button1_Click" /> using DotNetNuke.Entities.Users; protected void Butt...

[Read the rest of this article...]

17
Bind values from a custom table to a CheckBoxList bound from a DNN list public void UpdateTrueFalseQuestions() { try ...

[Read the rest of this article...]

21
Your SQL stored procedure: INSERT INTO Invoices (InvoiceNumber, InvoiceDate, SupplierID, ModuleID, CreatedOnDate, CreatedByUserID, PortalID) VALUES (...

[Read the rest of this article...]

14
string htmlHeaderTags = null; LiteralControl htmlHeaderCtrl = new LiteralControl(); htmlHeaderTags = "<base target=\"_self\">"; htmlHeaderCtrl.T...

[Read the rest of this article...]

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