Hi everyone I have a problem in displaying the information of my portal user in my DNN. Because I'm getting all of the information of the users such as :
e-mail
affiliateID
portalId
username
displayname and etc....
Which I dont want to have. Because I only need particular information such as UserID, and Username that's all.
currently I'm using these line of codes to retrieve the portal user:
publicArrayListbindingListHere(stringtxtSearchUser)
{
stringgetUsers=txtSearchUser;
inttotalrecords=10;
Users=UserController.GetUsersByUserName(PortalId,getUsers+"%",0,10,reftotalrecords,true,IsSuperUser);
returnUsers;
}
And then bind it here :
protectedvoidSearch(objectsender,EventArgse)
{
//callingthemethodfromthelibthatwillsearchuserofthe portal
DownloadCtrLibdctrl=newDownloadCtrLib();
dctrl.bindingListHere(txtSearchUser.Text);
gvUser.DataSource=dctrl.bindingListHere(txtSearchUser.Text);
gvUser.DataBind();
}