Login
Home
KB
Snippets
Current Articles
|
Archives
|
Search
C Sharp - C#
NO Image:
private void function()
11
GridView Trim Long String
posted on May 11, 2016 09:32
Try this . . . . <asp:TemplateField HeaderText="Thank You Letter"> <ItemTemplate> <asp:Label ID="lblTYLetter" runat="server" Text='&...
[Read the rest of this article...]
GridView TemplateField
Posted in:
C Sharp - C#
,
DNN
,
Modules
Actions:
E-mail
|
Permalink
|
Comments (0)
11
DNN 7.3 FillObject
posted on May 11, 2016 06:34
//public DonationTrackerInfo DonationTrackerPledgeGetPledgeByID(int pledgeID) //{ // return (DonationTrackerInfo)CBO.FillObject(DataProvider.Instanc...
[Read the rest of this article...]
DNN Controller
Posted in:
C Sharp - C#
Actions:
E-mail
|
Permalink
|
Comments (0)
04
Get State Code By State Name
posted on May 04, 2016 07:17
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
Posted in:
C Sharp - C#
,
DNN
,
Custom Modules
Actions:
E-mail
|
Permalink
|
Comments (0)
25
Call a Function from a GridView
posted on January 25, 2016 08:43
<asp:TemplateField HeaderText="Frequency"> <ItemTemplate> <asp:Label ID="lblFrequency" runat="server" Text='<%# GetFrequencyLookup...
[Read the rest of this article...]
GridView
,
Function
Posted in:
C Sharp - C#
,
Modules
,
Custom Modules
Actions:
E-mail
|
Permalink
|
Comments (0)
12
Numbers to Words
posted on August 12, 2015 08:17
public static string NumberToWords(int number) { if (number == 0) return "zero"; if (number < 0) return "minus " + NumberT...
[Read the rest of this article...]
Posted in:
C Sharp - C#
Actions:
E-mail
|
Permalink
|
Comments (0)
26
Log to DNN Event Viewer
posted on November 26, 2014 07:57
DotNetNuke.Services.Log.EventLog.EventLogController objEventLog = new DotNetNuke.Services.Log.EventLog.EventLogController(); objEventL...
[Read the rest of this article...]
DNN Event Viewer
Posted in:
C Sharp - C#
,
Custom Modules
Actions:
E-mail
|
Permalink
|
Comments (0)
06
DNN GetUsersByRoleName for a Dropdown
posted on July 06, 2014 07:56
public void GetPreviousAgents(string _AgentRole) { try { DotNetNuke.Security.Roles.RoleController objRoleController = new DotNetNuke.Security.Rol...
[Read the rest of this article...]
DNN
,
GetUsersByRoleName
,
C#
Posted in:
C Sharp - C#
,
DNN
,
Modules
,
Custom Modules
Actions:
E-mail
|
Permalink
|
Comments (0)
22
Server.MapPath Usage
posted on April 22, 2014 08:51
Server.MapPath specifies the relative or virtual path to map to a physical directory. Server.MapPath(".") returns the current physical ...
[Read the rest of this article...]
Posted in:
C Sharp - C#
Actions:
E-mail
|
Permalink
|
Comments (0)
17
DNN Check for Authentication and Redirect to Login Page
posted on April 17, 2014 06:44
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...]
Posted in:
C Sharp - C#
,
DNN
,
Modules
,
Custom Modules
Actions:
E-mail
|
Permalink
|
Comments (0)
13
Generate QueryString Parameters
posted on April 13, 2014 05:34
protected static string GenerateQueryStringParameters(HttpRequest request, params string[] queryStringKeys) { StringBuilder queryS...
[Read the rest of this article...]
Posted in:
C Sharp - C#
,
private void function()
Actions:
E-mail
|
Permalink
|
Comments (0)
Page 2 of 4
First
Previous
1
[2]
3
4
Next
Last