Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedPopulate Admin DropDown with list of all usersPopulate Admin DropDown with list of all users
Previous
 
Next
New Post
8/5/2010 5:56 PM
 
If this has been covered elsewhere, please direct me!

I know how to access a DataContext for my own databases, but not those internal to DotNetNuke.
I am trying to give an admin the capability of selecting a name from a dropdown of all users, in order to assign them to a specific task.
I tried searching for User Lists, but can only find something for specific roles, and do not want to limit an admin that way (except to exclude the Host, I guess).

<asp:DropDownList ID="ddlUsers" runat="server" DataTextField="???" DataValueField="???" />
...
var colUsers = from Users in ???
               select Users;
ddlUsers.DataSource = colUsers;
ddlUsers.DataBind();

I am using DNN 5, VS'10, and C#.  Thanks
 
New Post
8/5/2010 11:16 PM
 
Search for method "UserController.GetUser".  This method will get you a list of users by portal.

Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
New Post
8/28/2010 10:04 PM
 
Sorry I forgot to thank you for the reply.  This may have worked; soon after this my pc failed and I had to upgrade to Win 7.  If I can ever get DNN reinstalled, I'll try this code again.  Thanks
 
New Post
8/29/2010 12:19 AM
 
If you need help getting DNN installed on Windows 7 check out the Installation video on this page http://bit.ly/dnntraininginfo 

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedPopulate Admin DropDown with list of all usersPopulate Admin DropDown with list of all users


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out