protected void ddlRoleId_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlRoleId.SelectedItem.Value == "-Select-")
            {
                lblSelect.Visible           = false;
                ddlPageSize.Visible         = false;
                lvRoleMember.Visible        = false;
                RoleMemberDataPager.Visible = false;
            }
            else
            {
                RoleMemberBE  roleMember    = new RoleMemberBE();
                RoleMemberBAL roleMemberBAL = new RoleMemberBAL();
                DataTable     dt            = new DataTable();

                roleMember.RoleId = Convert.ToInt32(ddlRoleId.SelectedItem.Value);
                hdnRoleId.Value   = roleMember.RoleId.ToString();
                RoleMemberDataPager.SetPageProperties(0, RoleMemberDataPager.PageSize, true);
                lblSelect.Visible           = true;
                ddlPageSize.Visible         = true;
                lvRoleMember.Visible        = true;
                RoleMemberDataPager.Visible = true;
                bindlvRoleMember();
                recalcNoOfPages();
            }
        }
        protected void CurrentRowTextBox_OnTextChanged(object sender, EventArgs e)
        {
            TextBox t = (TextBox)sender;

            try
            {
                DataPagertxtValue = Convert.ToInt32(t.Text);
            }
            catch
            {
                LoggedIn master = (LoggedIn)this.Master;
                master.ShowMessage("Value Out of Range", false);
                return;
            }

            if (t.Text == "")
            {
                return;
            }


            if (DataPagertxtValue <= RoleMemberDataPager.TotalRowCount)
            {
                RoleMemberDataPager.SetPageProperties(Convert.ToInt32(t.Text) - 1,
                                                      RoleMemberDataPager.PageSize, true);
                bindlvRoleMember();
                recalcNoOfPages();
            }
            else
            {
                LoggedIn master = (LoggedIn)this.Master;
                master.ShowMessage("Incorrect Input", false);
            }
        }
        protected void PageJump_SelectedIndexChanged(object sender, EventArgs e)
        {
            DropDownList PageJumpDDL = (DropDownList)sender;
            int          pageNo      = Convert.ToInt32(PageJumpDDL.SelectedValue);

            int startRowIndex = (pageNo - 1) * RoleMemberDataPager.PageSize;

            RoleMemberDataPager.SetPageProperties(startRowIndex, RoleMemberDataPager.PageSize, true);
            recalcNoOfPages();
        }