//OnClick for View Full Profile button in the gridView, which gets the current row index that the button was clicked in and
        //gets the appropriate information into the modal for the pending users information.
        protected void BtnViewUserProfile_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;

            //Get the row that contains this button
            GridViewRow gvr = (GridViewRow)btn.NamingContainer;

            //Get rowindex
            int rowindex = gvr.RowIndex;

            //Fill the idList
            idList = (List <int>)Session["UserIds"];
            //set the id from the index in the idlist
            int id = idList[rowindex];

            //Call to method to display the content from the database to the objects in the modal
            get_newuser(idList[rowindex]);
            //Making the modal visible to the user by showing the modal popup extender
            UserModalPopupExtender.Show();//ajax call to show the modal panel
        }
 //On-Click event for the close button in the modal. This event hides the popup extender, which changes the visibilty of the modal.
 protected void CloseButton_Click(object sender, EventArgs e)
 {
     //ajax call to close the panel
     UserModalPopupExtender.Hide();
 }