ASP.NET Page /Admin/Profile.aspx (C#)
Uses Code Behind Page Page /Admin/Profile.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="true" Inherits="Admin_Profile" Codebehind="Profile.aspx.cs" %>  
2:   
3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
4:   
5: <html xmlns="http://www.w3.org/1999/xhtml" >  
6: <head runat="server">  
7:     <title>Untitled Page</title>  
8: </head>  
9: <body>  
10:     <form id="form1" runat="server">  
11:                 <asp:HyperLink ID="lblHome" runat="server" NavigateUrl="~/Admin/Default.aspx">Home</asp:HyperLink>  
12:                 <br />      
13:     <div>  
14:         <asp:GridView ID="grdUserProfiles" runat="server" AllowPaging="True" AllowSorting="True"  
15:             AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333"  
16:             GridLines="None" PageSize="50" DataKeyNames="UserName"  
17:             onrowdeleting="grdUserProfiles_RowDeleting">  
18:             <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
19:             <Columns>  
20:                 <asp:CommandField ShowDeleteButton="True" />  
21:                 <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" />  
22:                 <asp:BoundField DataField="CreateDate" HeaderText="CreateDate" SortExpression="CreateDate" />  
23:                 <asp:BoundField DataField="LastLoginDate" HeaderText="LastLoginDate" SortExpression="LastLoginDate" />  
24:                 <asp:BoundField DataField="City" HeaderText="City" ReadOnly="True" SortExpression="City" />  
25:                 <asp:BoundField DataField="State" HeaderText="State" ReadOnly="True" SortExpression="State" />  
26:                 <asp:BoundField DataField="Country" HeaderText="Country" ReadOnly="True" SortExpression="Country" />  
27:                 <asp:BoundField DataField="NickName" HeaderText="NickName" ReadOnly="True" SortExpression="NickName" />  
28:                 <asp:BoundField DataField="GetNewsletter" HeaderText="GetNewsletter" ReadOnly="True" SortExpression="GetNewsletter" />  
29:                 <asp:BoundField DataField="LastActivityDate" HeaderText="LastActivityDate" SortExpression="LastActivityDate" />  
30:                 <asp:TemplateField HeaderText="Current Time">  
31:                     <ItemTemplate>  
32:                         <asp:Label Text='<%# CalculateCorrectTime(Eval("LastActivityDate").ToString()) %>' Runat="Server"/>  
33:                     </ItemTemplate>      
34:                 </asp:TemplateField>              
35:             </Columns>  
36:             <RowStyle BackColor="#EFF3FB" />  
37:             <EditRowStyle BackColor="#2461BF" />  
38:             <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />  
39:             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />  
40:             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
41:             <AlternatingRowStyle BackColor="White" />  
42:         </asp:GridView>  
43:     </div>  
44:     </form>  
45: </body>  
46: </html>  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.