Ejemplo n.º 1
0
        protected void OnDelete_AssignedUser(object sender, EventArgs e)
        {
            // AssignPermssns.Attributes.Add("class", "active");
            hidTAB.Value = "#tab5";
            LinkButton lnk = sender as LinkButton;

            string recId = lnk.Attributes["RecId"];

            try
            {
                if (mp.DeleteAssignedUsers(Convert.ToDecimal(recId)) == true)
                {
                    this.lblAssgnUserMsg.Text = MessageFormatter.GetFormattedSuccessMessage("Assigned User Deleted Succesfully!");

                    GridView5.DataBind();
                }
                else
                {
                    this.lblAssgnUserMsg.Text = MessageFormatter.GetFormattedErrorMessage("Error Deleted Assigned User!");
                }
            }
            catch (Exception ex)
            {
                this.lblAssgnUserMsg.Text = MessageFormatter.GetFormattedErrorMessage("Error:" + ex.Message);
            }
        }