SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["EatProject"].ToString()); con.Open(); string str = "select Name,ImagePath,Link,Status from ImagesPath where ID ='" + DropDownList1.SelectedItem.Text + "'"; cmd = new SqlCommand(str, con); dr = cmd.ExecuteReader(); while (dr.Read()) { TextBox4.Text = dr["Name"].ToString(); //Image1.ImageUrl = dr["Imagepath"].ToString(); TextBox5.Text = dr["Link"].ToString(); TextBox6.Text = dr["Status"].ToString(); } con.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)