Exemplo n.º 1
0
 //Delete:Supplier
 protected void Delete_Click(object sender, EventArgs e)
 {
     if (RecordId.Value != "")
     {
         int id = Convert.ToInt32(RecordId.Value);
         if (repo.Delete_SupplierById(id))
         {
             ScriptManager.RegisterStartupScript(this, this.GetType(), "toastr", "toastr.success('Record deleted successfully.');", true);
             HtmlMeta meta = new HtmlMeta();
             meta.HttpEquiv = "Refresh";
             meta.Content   = "1;url=List.aspx";
             this.Page.Controls.Add(meta);
         }
     }
 }