How to create dataset in ASP.NET3.5

Posted by Theramkumar under Regular Expressions on 11/24/2009 | Views : 7451 | Status : [Member] | Replies : 3
Hi All,

I couldn' t create dataset in ASP.NET 3.5 Using the following code....

using System.Data.SqlClient;


protected void Button4_Click1(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(" Data Source =RAM;Initial Catalog = master;User ID=sa;Password=krish");
con.Open();
SqlCommand cmd = new SqlCommand("select * from emp", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
}

There is no intelligence option for dataset.....

T.RAM KUMAR


Responses

Posted by: Abhijit Jana on: 11/24/2009 [Member] [MVP] Bronze

Up
0
Down
Try This :)

Using System.Data


DataSet Ds= New DataSet();



Cheers !
Abhijit

Theramkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Theramkumar on: 11/24/2009 [Member] Bronze

Up
0
Down
thanks


T.RAM KUMAR

Theramkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhijit Jana on: 11/24/2009 [Member] [MVP] Bronze

Up
0
Down
Welcome. Let me know if you have any more doubts !

Cheers !
Abhijit

Theramkumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response