C Sharp - C#

Snippets


C Sharp - C#

 

NO Image:
25
<asp:TemplateField HeaderText="Frequency"> <ItemTemplate> <asp:Label ID="lblFrequency" runat="server" Text='<%# GetFrequencyLook...

[Read the rest of this article...]

Function, GridView
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#
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...]

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