Tuesday, February 23, 2010

How to convert SqlDataReader or DataReader to DataSet in Asp.Net

In some cases most of the asp.net C# vb.net developers need to convert or converting SqlDataReader or DataReader to a DataSet to meet some technical challenges. Here i will show you converting SqlDataReader to a DataSet in a simple way. The code sample is given below:












protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string sql =

No comments:

Post a Comment