C Sharp - C#

Snippets

 

02
        public string ReturnBooleanAsYes_or_No(Boolean choice)         {  ...

[Read the rest of this article...]

bool, boolean
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
11
Try this . . . . <asp:TemplateField HeaderText="Thank You Letter"> <ItemTemplate> <asp:Label ID="lblTYLetter" runat="server" Text...

[Read the rest of this article...]

GridView TemplateField
11
//public DonationTrackerInfo DonationTrackerPledgeGetPledgeByID(int pledgeID) //{ // return (DonationTrackerInfo)CBO.FillObject(DataProvider.Insta...

[Read the rest of this article...]

DNN Controller
Posted in: C Sharp - C#
04
DNN now returns the long state name when using DotNetNuke.Entities.Users.UserInfo . . . Here's an easy workaround for returning the 2 letter stat...

[Read the rest of this article...]

State Name, State Code
25
<asp:TemplateField HeaderText="Frequency"> <ItemTemplate> <asp:Label ID="lblFrequency" runat="server" Text='<%# GetFrequencyLook...

[Read the rest of this article...]

GridView, Function
12
public static string NumberToWords(int number) { if (number == 0) return "zero"; if (number < 0) return "minus " + N...

[Read the rest of this article...]

Posted in: C Sharp - C#
26
DotNetNuke.Services.Log.EventLog.EventLogController objEventLog = new DotNetNuke.Services.Log.EventLog.EventLogController(); objEvent...

[Read the rest of this article...]

DNN Event Viewer
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 2 of 5First   Previous   1  [2]  3  4  5  Next   Last