I made a module that I would like to add to the user profile for my site. It's a list of admin users they can contact if they have any questions (saves them from all coming to me with every single question :) )
I found the profile info is all in DesktopModules/Admin/Security/manageusers.ascx. I started off by putting my module straight onto this page using the register tags in asp:
<%@ Register TagPrefix="evi" TagName="InstAdmin" Src="~/DesktopModules/EviInstAdmin/EviInstAdmin.ascx" %>
I then display my module on the page:
<evi:InstAdmin ID="EviAdminList" runat="server" />
This works fine, but I don't like it as I'm modifying the core source which means I have to maintain it as things move forward. So I tried adding the manage users to my module like I did above:
<%@ Register TagPrefix="dnn" TagName="ManageUsers" Src="~/DesktopModules/Admin/Security/manageusers.ascx" %>
and then display it:
<dnn:ManageUsers ID="prof" runat="server" />
The problem I'm getting is some value is not being set when I call this and I get an error. I noticed there is a PageNo tag for the manageusers and I tried setting that to 0 for the first page. I also noticed there is a User tag that can go in, but I think it wants a UserInfo object in it. I have no idea how to do that. Here was my last shot:
<dnn:ManageUsers ID="prof" runat="server" PageNo="0" User="3" />
The 3 is my UserId which I just added for testing. No luck.
Any ideas on how I can do this? I know I could make my own profile page, even copy the code from manage users and do it that way. But I'd like to stick with the code from the core files if possible. I have a feeling it's just something I'm missing in ASP, but don't know what.
-Mike