Tag: zonix Software Solutions

Code Sample to Upload file to FTP Server

Visit: https://zonixsoft.com check out below code to upload file to FTP Server:   /// <summary> /// Code to upload file to FTP Server /// </summary> /// <param name=”strFilePath”>Complete physical path of the file to be uploaded</param> /// <param name=”strFTPPath”>FTP Path</param> /// <param name=”strUserName”>FTP User account name</param> /// <param name=”strPassword”>FTP User password</param> /// <returns>Boolean value based […]

Code Sample to Upload file to FTP Server

Visit: https://zonixsoft.com check out below code to upload file to FTP Server:   /// <summary> /// Code to upload file to FTP Server /// </summary> /// <param name=”strFilePath”>Complete physical path of the file to be uploaded</param> /// <param name=”strFTPPath”>FTP Path</param> /// <param name=”strUserName”>FTP User account name</param> /// <param name=”strPassword”>FTP User password</param> /// <returns>Boolean value based […]

Icon in the Address bar Textbox in Browsers

Visit: https://zonixsoft.com (Short Cut) Icon in the Address bar Textbox in Browsers You have to insert this line after the <head> tag in your html / ASPX / Master Page. <link rel=”shortcut icon” href=”images/MyComp.ico”> Make sure the image is file type .ico (for icon). Also, after inserting this line, the image may not appear immediately. […]

Convert Date Formats :

  //For ex., Convert MM/dd/YYYY to dd/MM/yyyy string date = “03/27/2008”; //format is MM/dd/yyyy DateTimeFormatInfo dateTimeFormatterProvider = DateTimeFormatInfo.CurrentInfo.Clone() as DateTimeFormatInfo; dateTimeFormatterProvider.ShortDatePattern = “MM/dd/yyyy”; //source date format DateTime dateTime = DateTime.Parse(date, dateTimeFormatterProvider); string formatted = dateTime.ToString(“dd/MM/yyyy”); //write the format in which you want the date tobe converted Response.Write(“<br />” + formatted);

Convert Date Formats :

  //For ex., Convert MM/dd/YYYY to dd/MM/yyyy string date = “03/27/2008”; //format is MM/dd/yyyy DateTimeFormatInfo dateTimeFormatterProvider = DateTimeFormatInfo.CurrentInfo.Clone() as DateTimeFormatInfo; dateTimeFormatterProvider.ShortDatePattern = “MM/dd/yyyy”; //source date format DateTime dateTime = DateTime.Parse(date, dateTimeFormatterProvider); string formatted = dateTime.ToString(“dd/MM/yyyy”); //write the format in which you want the date tobe converted Response.Write(“<br />” + formatted);

GZipStream Class to Compress and Decompress Stream Data

Provides methods and properties used to compress and decompress streams. Namespace: System.IO.Compression Assembly: System (in system.dll)   This class represents the gzip data format, which uses an industry standard algorithm for lossless file compression and decompression. The format includes a cyclic redundancy check value for detecting data corruption. The gzip data format uses the same […]

GZipStream Class to Compress and Decompress Stream Data

Provides methods and properties used to compress and decompress streams. Namespace: System.IO.Compression Assembly: System (in system.dll)   This class represents the gzip data format, which uses an industry standard algorithm for lossless file compression and decompression. The format includes a cyclic redundancy check value for detecting data corruption. The gzip data format uses the same […]

OOPS Concepts and .NET Part 2 Inheritance, Abstraction, Polymorphism

Summary The following article is the second of a three-part article series that presents definitions and samples for different Object-Oriented Programming (OOP) concepts and its implementation in .NET. The first part examined the concepts of classes, objects, and structures. This part examines the concepts of inheritance, abstraction, and polymorphism. The third and last part will […]

OOPS Concepts and .NET Part 2 Inheritance, Abstraction, Polymorphism

Summary The following article is the second of a three-part article series that presents definitions and samples for different Object-Oriented Programming (OOP) concepts and its implementation in .NET. The first part examined the concepts of classes, objects, and structures. This part examines the concepts of inheritance, abstraction, and polymorphism. The third and last part will […]