- public void BindImages()
- {
- try
- {
- string query = "select * from Images where Prod_id=@Id";
- SqlCommand cmd = new SqlCommand(query, EcomConString);
- cmd.Parameters.AddWithValue("@Id", SqlDbType.VarChar).Value = id;
- cmd.CommandType = CommandType.Text;
- SqlDataAdapter sda = new SqlDataAdapter(cmd);
- DataTable dt = new DataTable();
- sda.Fill(dt);
- if (dt.Rows.Count > 0)
- {
- foreach (DataRow dr in dt.Rows)
- {
- strImages += @"
";strThumbImage += dr["Img"].ToString() + ",";+ dr["Img"] + @"' class='img-thumbnail' alt='' />
- }
- }
- }
- catch (Exception ex) { }
- }
Loading
Laxmidhar SahooPosted May 29, 2020, 4:08 AM
Salman BegPosted May 29, 2020, 3:04 AM
Rajanikant HawaldarPosted May 29, 2020, 2:57 AM
Jignesh KumarPosted May 29, 2020, 2:54 AM