SqlConnection conn = new SqlConnection("Data Source=TWS\\SQLEXPRESS;Initial Catalog=db_umesh;Integrated Security=SSPI;");
SqlConnection conn = new SqlConnection("Data Source=TWS\\SQLEXPRESS;Initial Catalog=db_umesh;Integrated Security=SSPI;"); string qry = "select * from tbl_course"; SqlCommand cmd = new SqlCommand(qry, conn); try { cmd.Connection.Open(); gv1.DataSource = cmd.ExecuteReader(); gv1.DataBind(); } catch (Exception ex) { lblmsg.Text = ex.ToString(); } finally { conn.Close(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)