• Microsoft .NET C# (C-Sharp)

    Microsoft .NET C# articles, samples, code snippets, applications, books, products.

    How to export DataTable to XML in C#

    by  • May 22, 2013 • Microsoft .NET C# (C-Sharp), Microsoft ASP.NET • 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 →

    Auto generate serial number in GridView in ASP.NET

    by  • May 21, 2013 • Microsoft .NET C# (C-Sharp), Microsoft ASP.NET • 0 Comments

    Many times we need serial number for our GridView rows. There are different methods to auto generate serial numbers in ASP.NET GridView Control. You can do it programmatically or in TemplateField if GridView control. You can simply do it in TemplateField fo GridView Control as you can see first TemplateField below We will...

    Read more →

    How to read web page contents in ASP.NET

    by  • May 19, 2013 • Microsoft .NET C# (C-Sharp), Microsoft ASP.NET • 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 →