Esempio n. 1
0
        protected void Delete_Click(object sender, EventArgs e)
        {
            LinkButton       btn      = (LinkButton)sender;
            int              AuthorID = int.Parse(btn.CommandArgument);
            AuthorController ac       = new AuthorController();

            ac.DeleteAuthor(AuthorID);
            rptAuthors.DataSource = ac.GetAuthors();
            rptAuthors.DataBind();
        }