예제 #1
0
        public void lbDelete_Click(Object sender, EventArgs e)
        {
            var userInSession = (Users)Session["userinsession"];
            var lb            = (LinkButton)sender;
            var profile       = new UsersProfiles();

            profile.Delete(Convert.ToInt32(lb.CommandArgument), userInSession.ID, OtherMethods.GetIPAddress(), "UProfilesView");
            Page.Response.Redirect("~/UserUI/ProfilesView.aspx");
        }
예제 #2
0
        public void btnDeleteProfile_Click(Object sender, EventArgs e)
        {
            var id            = Page.Request.Params["id"];
            var userInSession = (Users)Session["userinsession"];
            var profile       = new UsersProfiles();

            profile.Delete(Convert.ToInt32(id), userInSession.ID, OtherMethods.GetIPAddress(), "ClientEdit");
            Page.Response.Redirect("~/ManagerUI/Menu/Souls/ClientsView.aspx");
        }