diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-10-27 08:28:15 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-10-27 08:28:15 -0700 |
commit | 533a5bcc95d543970591abe72da59c5828b9f419 (patch) | |
tree | 1b868c188fa785c600014854966cf8d67d8d33a3 /projecttemplates/WebFormsRelyingParty | |
parent | 7daa2ad5b267330bf33eb9acaf605cca6bc40f96 (diff) | |
download | DotNetOpenAuth-533a5bcc95d543970591abe72da59c5828b9f419.zip DotNetOpenAuth-533a5bcc95d543970591abe72da59c5828b9f419.tar.gz DotNetOpenAuth-533a5bcc95d543970591abe72da59c5828b9f419.tar.bz2 |
Added trivial user database display in admin area.
Diffstat (limited to 'projecttemplates/WebFormsRelyingParty')
3 files changed, 47 insertions, 0 deletions
diff --git a/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx b/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx index 892fb09..7e3a03d 100644 --- a/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx +++ b/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx @@ -11,6 +11,42 @@ This is the specially-privileged Admin area. You can only reach here if you are a member of the Admin role. </div> + <asp:Repeater runat="server" ID="usersRepeater"> + <HeaderTemplate> + <table border="1"> + <thead> + <tr> + <td> + Email + </td> + <td> + Claimed IDs + </td> + </tr> + </thead> + <tbody> + </HeaderTemplate> + <ItemTemplate> + <tr> + <td> + <%# HttpUtility.HtmlEncode((string)Eval("EmailAddress")) %> + </td> + <td> + <asp:Repeater runat="server" DataSource='<%# Eval("AuthenticationTokens") %>'> + <ItemTemplate> + <%# HttpUtility.HtmlEncode((string)Eval("ClaimedIdentifier")) %> + </ItemTemplate> + <SeparatorTemplate> + <br /> + </SeparatorTemplate> + </asp:Repeater> + </td> + </tr> + </ItemTemplate> + <FooterTemplate> + </tbody> </table> + </FooterTemplate> + </asp:Repeater> </form> </body> </html> diff --git a/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx.cs b/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx.cs index a3ce30e..9e45e45 100644 --- a/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx.cs +++ b/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx.cs @@ -17,6 +17,8 @@ namespace WebFormsRelyingParty.Admin { public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { + usersRepeater.DataSource = Global.DataContext.User.Include("AuthenticationTokens"); + usersRepeater.DataBind(); } } } diff --git a/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx.designer.cs b/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx.designer.cs index de4c986..aa45ea1 100644 --- a/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx.designer.cs +++ b/projecttemplates/WebFormsRelyingParty/Admin/Default.aspx.designer.cs @@ -21,5 +21,14 @@ namespace WebFormsRelyingParty.Admin { /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// <summary> + /// usersRepeater control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.Repeater usersRepeater; } } |