Beispiel #1
0
    protected void btnSecurityUpdate_Click(object sender, EventArgs e)
    {
        User = Convert.ToInt32(hidUserIDVal.Value);
        hidUserValue.Value = hidUserValue.Value.Replace("`", "");
        hidUserID.Value    = hidUserID.Value.Replace("`", "");
        string SecurityValue = hidUserValue.Value;

        string whereClause = "pSecMembersID in (" + hidUserID.Value.Remove(hidUserID.Value.Length - 1, 1) + ")";

        employee.DeleteUserGroup(whereClause);
        hidUserValue.Value = hidUserID.Value = "";

        BindUserGrid();
        BindSecurityGrid();

        ScriptManager.RegisterClientScriptBlock(btnSecurityUpdate, btnSecurityUpdate.GetType(), "Cursor", "document.form1.style.cursor='auto';", true);
        upnlGroupGrid.Update();
        upnlSecurityGrid.Update();
        upnlPermGrid.Update();
    }