CMS_User Table

Sonia Samimi asked on February 1, 2020 12:03

Hi Dear friends; I have user control and I want to fill a drop-down list form control with CMS User table with a condition on it. could you please help me to do it. thank you in advance

Correct Answer

Dat Nguyen answered on February 1, 2020 13:29

Without knowing the specifics of the control you're building, I can only provide a high-level answer to your question.

You should call the UserInfoProvider.GetUsers() static method with a Where() to get the collection of users (UserInfo objects) that match whatever conditions you specify.

Then, you'd iterate through the UserInfo collection to populate the options for the dropdown list.

If you need additional advice, let us know what you need specifically.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Sonia Samimi answered on February 2, 2020 13:01

thank you very much it helps me alot

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.