• How to export DataTable to XML in C#

    by  • May 22, 2013 • 0 Comments

    Sometimes we need to export our DataSet or DataTable data to XML file. ASP.NET provides a simple WriteXml() method of DataTable or DataSet class. This method simply writes DataTable or DataSet data to the specified file. You can also achieve this by using StreamWriter class object with WriteXml() method of DataTable or DataSet class....

    Read more →

    How to Ping a Server in ASP.NET

    by  • May 20, 2013 • 0 Comments

    Your obvious choice is to check the server which you want to connect, is up and running. The following piece of code is a simple way to ping your desire server in your ASP.NET application. You can use it to check the server periodically and make your choice according to server status. Let’s see...

    Read more →

    How to read web page contents in ASP.NET

    by  • May 19, 2013 • 0 Comments

    Different browsers provide facility to read web page contents but sometimes we need to read web page content in our ASP.NET application. ASP.NET has some built-in classes that we can use to read web page contents. There are also many libraries like HtmlAgilityPack to achieve this but ASP.NET built-in classes provide simple and easy...

    Read more →

    How to use Calendar in ASP.NET

    by  • May 18, 2013 • 0 Comments

    ASP.NET provides a simple calendar control to use calendar and select date in your page. Like other controls of ASP.NET, calendar control has attributes and events which you can you to achieve your desired functionality. You can also set different themes and styles for this calendar control. This is very flexible control and you...

    Read more →

    How to create and retrieve cookies in C#

    by  • May 16, 2013 • 0 Comments

    Cookie is a piece of text stored on the user’s browser or hard drive. Cookies are used to remember user preferences on the website. Information is stored on the client’s browser from server side when a user visits the website very first time or previously created cookies expired or removed. Next time user visits...

    Read more →