I insert picture paths into database and when I get the path I display them with img tag.
I can do it but I couldn't find the methods that I have to write after sql query.
What I have to write after sql query?
In Page_Load my select command works.
c = new Common(ConfigurationManager.ConnectionStrings["ahapp"]);
string sql = "select Query";
string str = "";
DataTable dt = c.GetDataTable(sql);
foreach (DataRow item in dt.Rows)
{
str += "<img src='" + item["path"].ToString() + "' style='width:100px' />";
}
dokList.InnerHtml = str;
This code always says:

sql ="INSERT INTO DR_OZLUK VALUES(3," + ddlDoktor.SelectedValue + "," + belgeid + ",3," + str + ",1)";
SqlCommand cmd = new SqlCommand(sql, c);
cmd.ExecuteNonQuery();