how to get image name? This is my delete code.im using stored procedure.
protected void btnDelete_Click(object sender, EventArgs e)
{
string CheckValues = string.Empty;
for (Int32 i = 0; i < gvList.Rows.Count; i++)
{
CheckBox chk = (CheckBox)gvList.Rows[i].FindControl("CheckBoxbtn");
if (chk.Checked == true)
{
CheckValues = CheckValues + "'"+((Label)gvList.Rows[i].FindControl("lblId")).Text+"'" + ",";
}
}
if (CheckValues != "")
{
CheckValues = CheckValues.Substring(0, CheckValues.Length - 1);
}
objNewes.ID = CheckValues;
objNewes.DeleteAnnouncement();
}