admin_pass.aspx
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:6k
源码类别:

.net编程

开发平台:

Visual C++

  1. <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_pass, oyaya" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
  3.     管理密码
  4. </asp:Content>
  5. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">   
  6.       <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
  7.         <tr>
  8.             <td class="top_table_td1">  </td>
  9.             <td class="top_table_td2"> 帐号管理</td>
  10.             <td class="top_table_td3" width="651">
  11.             </td>
  12.         </tr>
  13.         <tr>
  14.             <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
  15.                 <table border="0" cellpadding="0" cellspacing="0" style="width: 608px">
  16.                     <tr>
  17.                         <td style="width: 217px;" height="30">
  18.                             帐号:<asp:TextBox ID="TextBox1" runat="server"  Width="153px" CssClass="TextBox" ValidationGroup="aa"></asp:TextBox></td>
  19.                         <td style="text-align: left; height: 30px;">
  20.                             &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
  21.                                 ErrorMessage="请输入帐号?" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
  22.                     </tr>
  23.                     <tr>
  24.                         <td style="width: 217px; height: 30px">
  25.                             密码:<asp:TextBox ID="TextBox2" runat="server" CssClass="TextBox" TextMode="Password" ValidationGroup="aa"></asp:TextBox></td>
  26.                         <td style="height: 30px; text-align: left">
  27.                             &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
  28.                                 ErrorMessage="请输入密码?" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
  29.                     </tr>
  30.                 </table>
  31.             </td>
  32.         </tr>
  33.         <tr>
  34.             <td colspan="3" style="text-align: left; padding-left: 20px; border-bottom: #cadcea 1px solid;">
  35.                 <br />
  36.                 <table border="0" cellpadding="0" cellspacing="0" style="width: 237px">
  37.                     <tr>
  38.                         <td style="width: 73px; height: 25px;">
  39.                 <asp:Button ID="Button1" runat="server" Text="添加帐号" CssClass="Button" OnClick="Button1_Click" ValidationGroup="aa"  /></td>
  40.                         <td style="width: 100px; height: 25px;">
  41.                 </td>
  42.                     </tr>
  43.                 </table>
  44.                 <br />
  45.                 </td>
  46.         </tr>
  47.     <tr>
  48.         <td colspan="3">
  49.             <asp:DataList ID="DataList1" runat="server" OnCancelCommand="DataList1_CancelCommand" OnEditCommand="DataList1_EditCommand" OnItemCommand="DataList1_ItemCommand" OnUpdateCommand="DataList1_UpdateCommand">
  50.                 <ItemTemplate>
  51.                         <table style="border-bottom: #cadcea 1px solid; width: 748px;">
  52.                             <tr>
  53.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; width: 80px; padding-left:20px;">
  54.                                 ID:<asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
  55.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 160px;" >
  56.                                 帐号:<asp:Label ID="Label2" runat="server" Text='<%# Eval("usersname") %>'></asp:Label></td>
  57.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 180px;" >密码:******</td>
  58.                                 <td style="width: 120px">
  59.                                 <asp:Button ID="Button3" runat="server" Text="修改" CommandName="edit" CausesValidation="False" CssClass="Button" />&nbsp;
  60.                                   <asp:Button ID="Button2" runat="server" CausesValidation="False" CssClass="Button"  Text="删除" CommandName="Delete" /></td>
  61.                             </tr>
  62.                         </table>
  63.                   </ItemTemplate>
  64.                   <EditItemTemplate>
  65.                         <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  66.                             <tr>
  67.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 80px;" >
  68.                                     ID:<asp:Label ID="Label5" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
  69.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 210px;" >
  70.                                     <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("usersname") %>' CssClass="TextBox"></asp:TextBox></td>
  71.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 180px;" >
  72.                                     <asp:TextBox ID="TextBox5" runat="server" Text='<%# Eval("password") %>' CssClass="TextBox"></asp:TextBox></td>
  73.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 130px;" >
  74.                                     &nbsp;<asp:Button ID="Button4" runat="server" CommandName="update" Text="更新" CausesValidation="False" CssClass="Button" />&nbsp;
  75.                                     <asp:Button ID="Button5" runat="server" CommandName="cancel" Text="取消" CausesValidation="False" CssClass="Button" /></td>
  76.                             </tr>
  77.                         </table>
  78.                     </EditItemTemplate>
  79.             </asp:DataList></td>
  80.     </tr>
  81.     </table>
  82. </asp:Content>