ScriptManager.RegisterStartupScript(this, this.GetType(), "Jscript2", "alert('Are you sure you want to delete this record!');", true);
if (e.CommandName == "DelDetails") { ScriptManager.RegisterStartupScript(this, this.GetType(), "Jscript2", "alert('Are you sure you want to delete this record!');", true); GridViewRow rowSelect = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer); Label lbldeleteid = rowSelect.FindControl("lbl_StarId") as Label; string str_Incident_Number_delete = lbldeleteid.Text.ToString(); SqlConnection con = new SqlConnection(cs); con.Open(); SqlCommand cmd = new SqlCommand("delete from Workflow where ID ='" + str_Incident_Number_delete + "'", con); cmd.ExecuteNonQuery(); con.Close(); ShowOpMatData(1); Refresh(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)