Click here to Skip to main content
16,016,501 members

Comments by Member 10651903 (Top 11 by date)

Member 10651903 22-Mar-14 11:55am View    
ok i will check it
Member 10651903 22-Mar-14 11:37am View    
cmd.CommandText = "select * from doct_medicine where medicine_id= " + Request.QueryString["id"].ToString();



in this line
Member 10651903 22-Mar-14 11:33am View    
SqlConnection sc = new SqlConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["hospitalmanagementdb"].ToString());
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "select * from doct_medicine where medicine_id= " + Request.QueryString["id"].ToString();
cmd.Connection = sc;
sc.Open();
SqlDataReader sdr = cmd.ExecuteReader();
sdr.Read();
txtname.Text = sdr[1].ToString();
txtcname.Text = sdr[2].ToString();
txtrate.Text = sdr[3].ToString();
Member 10651903 22-Mar-14 11:33am View    
SqlConnection sc = new SqlConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["hospitalmanagementdb"].ToString());
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "select * from doct_medicine where medicine_id= " + Request.QueryString["id"].ToString();
cmd.Connection = sc;
sc.Open();
SqlDataReader sdr = cmd.ExecuteReader();
sdr.Read();
txtname.Text = sdr[1].ToString();
txtcname.Text = sdr[2].ToString();
txtrate.Text = sdr[3].ToString();
Member 10651903 9-Mar-14 13:38pm View    
ok i will do this thanks