Example #1
0
    public void btndelete_Click(object sender, EventArgs e)
    {
        //Deactivating Empid from carsales.
        string  EMpid             = Session["EMpid"].ToString();
        DataSet dsSalesUpdateList = objHotLeadBL.DeleteEmployee(EMpid);

        System.Web.UI.ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "Script", "alert('" + EMpid + " has been deleted succesfully.');", true);
        MpUpdaterights.Hide();
        GetLeadsSattus();
    }
Example #2
0
    public void OnConfirm(object sender, EventArgs e)
    {
        string confirmValue = Request.Form["confirm_value"];

        if (confirmValue == "Yes")
        {
            //Deactivating Empid from carsales.
            string  EMpid             = Session["EMpid"].ToString();
            DataSet dsSalesUpdateList = objHotLeadBL.DeleteEmployee(EMpid);
            System.Web.UI.ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "Script", "alert('" + EMpid + " has been deleted succesfully.');", true);
            MpVechlAdd.Hide();
            GetUserDefaultRights();
        }
        else
        {
        }
    }