C Sharp - C#

Snippets

 

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...]

04
object objFSO; SetobjFSO = Server.CreateObject("Scripting.FileSystemObject"); // Get the folder object associated with the directory object objFold...

[Read the rest of this article...]

Posted in: C Sharp - C#
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...]

28
/// <summary>  /// Returns the first day of the next month. /// </summary> /// <example> /// i.e. If start date is 9/27/2...

[Read the rest of this article...]

Posted in: C Sharp - C#
21
Your SQL stored procedure: INSERT INTO Invoices (InvoiceNumber, InvoiceDate, SupplierID, ModuleID, CreatedOnDate, CreatedByUserID, PortalID) VALUES...

[Read the rest of this article...]

10
switch(myNumber)       {          case "1":   // DO SOMETHI...

[Read the rest of this article...]

Posted in: C Sharp - C#
Page 3 of 5First   Previous   1  2  [3]  4  5  Next   Last