In gridview if user click delete button i want to delete that record so after clicking delete button i want to show confirmation box not alert box and from confirmation box i want to check if user click yes then delete the record else cancel I want how to check if user click yes or no from confirm box
HyperLink hypComplaintMasterDelete =HyperLink)e.Row.FindControl("hypComplaintMasterDelete");
hypComplaintMasterDelete.NavigateUrl = string.Format("{0}?control=CommitteeMembersDetails&Mode=De&id={1}", MasterDataHelper.NAVIGATE_Committee, lblCollagecommitteeUsersID.Text);
hypComplaintMasterDelete.Attributes.Add("onclick", "return confirm('Are you sure \n You want to delete);");