protected void btndelete_Click(object sender, EventArgs e) { LinksDal db = new LinksDal(); var id = Convert.ToInt64(txtid.Text); db.Delete(id); load(); }
//删除链接 private void DeleteLinksById() { long Id = Convert.ToInt64(HttpContext.Current.Request["LinksId"]); LinksDal db = new LinksDal(); if (db.Delete(Id)) { result = "OK"; } else { result = "NO"; } }