|
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="UserList.aspx.cs" Inherits="UserList" Title="Users List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
<h1>
Users list</h1>
<div>
<p>
<a class="newitem" id="linkNewItem" runat="server" >New login</a>
</p>
<asp:Repeater ID="listRepeater" runat="server" OnItemCommand="listRepeater_ItemCommand">
<HeaderTemplate>
<table class="datatable">
<thead>
<tr>
<th>
Name</th>
<th>
EMail</th>
<th>
Status</th>
<th>
</th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem, "UserName")%>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "Email")%>
</td>
<td>
<%# GetUserStatus((MembershipUser)Container.DataItem) %>
</td>
<td>
<asp:LinkButton CssClass="edititem" ID="LinkButton1" runat="server"
CommandName="edit" CommandArgument='<%# Eval("UserName") %>' >Edit</asp:LinkButton>
<asp:LinkButton CssClass="deleteitem" OnClientClick="return confirm('Are you sure to delete the user?');"
ID="LinkButton2" runat="server" CommandName="delete" CommandArgument='<%# Eval("UserName") %>' >Delete</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</tbody> </table>
</FooterTemplate>
</asp:Repeater>
</div>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.