예제 #1
0
        protected void btndelete_Click(object sender, EventArgs e)
        {
            LinksDal db = new LinksDal();
            var      id = Convert.ToInt64(txtid.Text);

            db.Delete(id);
            load();
        }
예제 #2
0
        //删除链接
        private void DeleteLinksById()
        {
            long     Id = Convert.ToInt64(HttpContext.Current.Request["LinksId"]);
            LinksDal db = new LinksDal();

            if (db.Delete(Id))
            {
                result = "OK";
            }
            else
            {
                result = "NO";
            }
        }