here is my code
SqlConnection conn = new SqlConnection(ConStr1);
conn.Open();
SqlCommand cmd = new SqlCommand("select * from emplyees", conn);
cmd.CommandType = CommandType.Text;
SqlDataAdapter sda = new SqlDataAdapter();
DataSet ds = new DataSet();
sda.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
conn.Close();
i want to display record on a button click event but record is not displaying could anyone help me what should i do?code should examine.furthermore i don't want to use data set
Bryian TanPosted Mar 4, 2017, 12:25 PM
umair mohsinPosted Mar 4, 2017, 8:09 AM
Gnanavel SekarPosted Mar 3, 2017, 1:27 AM
Amit GuptaPosted Mar 3, 2017, 1:24 AM
umair mohsinPosted Mar 3, 2017, 1:05 AM
Amit GuptaPosted Mar 2, 2017, 2:40 PM
umair mohsinPosted Mar 2, 2017, 2:31 PM
Amit GuptaPosted Mar 2, 2017, 12:08 PM
Nilesh ShahPosted Mar 2, 2017, 10:45 AM