Knowledge Base
List Users in a DNN Security Role
Last Post 01 Sep 2009 10:32 AM by DNNDev Admin. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
DNNDev AdminUser is Offline
Posts:6314
Avatar

--
01 Sep 2009 10:32 AM  
I put together an internal page on one of my sites where I had to display the users in a DNN Security Role. I used XMP for the task, making the process almost trivial to implement. I thought you might like it, since it shows an example of calling a DNN stored procedure. I've kept it simple - an un-ordered list with no formatting.


<xmod:template>
  <listdatasource commandtext="EXEC GetUsersByRolename @PortalId, @Rolename">
    <parameter name="PortalId" alias="PortalId" value="8" />
    <parameter name="Rolename" alias="Rolename" value="Administrators" />
  </listdatasource>

  <headertemplate>
    <h2>Members</h2>
    [ul]
  </headertemplate>
  <itemtemplate>
    [li][[DisplayName]] ([[Username]])[/li]
  </itemtemplate>
  <footertemplate>
    [/ul]
  </footertemplate>
</xmod:template> 
Power Your Website With XMod Pro
Buy XMod Pro Today
Tags: XMod Pro, stored procedure, users, role
You are not authorized to post a reply.

Active Forums 4.1
spacer
dummy