Author: Zonixsoft

Web Parts

Visit: https://zonixsoft.com This article discuss about the Web Parts, new feature introduced in ASP.NET 2.0. Web Parts are objects which the end user can open, close or move from one zone of the page to another. Web Parts allows for personalization of page content. They allows users to move or hide the Web Parts and […]

New in C-Sharp 3.0

Visit: https://zonixsoft.com New in C-Sharp 3.0 New in C# 3.0 This article discusses the following major new enhancements expected in C# 3.0: • Implicitly typed local variables • Anonymous types • Extension methods • Object and collection initializers • Lambda expressions • Query expressions • Expression Trees Implicitly typed local variables: C# 3.0 introduces a new keyword called “var”. Var allows you […]

Threading

Visit: https://zonixsoft.com C# supports parallel execution of code through multithreading. A thread is an independent execution path, able to run simultaneously with other threads.A C# program starts in a single thread created automatically by the CLR and operating system (the “main” thread), and is made multi-threaded by creating additional threads.The CLR assigns each thread its […]

Some very special features of crystal reports

Visit: .comhttp://www.zonixsoft Create a Watermark A watermark is a graphical or textual element that is placed behind the rest of yourreport. Examples of useful watermarks are your company logo, the word “Draft,”or other items that you may want to appear right behind the rest of the elements of your report.   1. Open the report […]

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);