如何写出现“确定”和“取消”的语句
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e){
Response.Write("<script> confirm('你确定要删除吗?');</scirpt>");
if (确认)
{
SqlConnection conn = new SqlConnection(System.Web.Configuration.WebConfigurationManager.AppSettings["con"]);
SqlCommand comm = new SqlCommand("delete msgcontent where messageid="+e.RowIndex +"", conn);
conn.Open();
comm.ExecuteNonQuery();
conn.Close();
}
}请问各位上面的那红色的语句如何写才能达到目地。