How to import /export database data from /to csv/XML/excel using ASP.NET and C#.

Introduction

In this post, I am going to explain how to import / export database data from / to XML using ASP.NET and C#.
Import/export data from/to some common format is very useful technique for transfer data between two other programs/ system on a different platform.