LoggedIn.aspx
上传用户:bhp852
上传日期:2022-07-12
资源大小:22k
文件大小:9k
源码类别:

.net编程

开发平台:

Visual Basic

  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="LoggedIn.aspx.vb" Inherits="suc" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>您已登录</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.         <asp:Panel ID="Panel1" runat="server" Height="192px" Style="left: 120px; position: relative;
  10.             top: 16px" Width="296px">
  11.         <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AutoGenerateEditButton="True" CellPadding="4"
  12.             DataSourceID="AccessDataSource1" ForeColor="#333333" GridLines="None" Style="position: relative" Width="296px" BorderStyle="Ridge">
  13.             <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  14.             <Columns>
  15.                 <asp:BoundField DataField="LoginName" HeaderText="ID" SortExpression="LoginName" />
  16.                 <asp:BoundField DataField="UserName" HeaderText="姓名" SortExpression="UserName" />
  17.                 <asp:BoundField DataField="Address" HeaderText="工作单位" SortExpression="Address" />
  18.             </Columns>
  19.             <SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True" />
  20.             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
  21.             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  22.             <AlternatingRowStyle BackColor="White" />
  23.             <RowStyle BackColor="#EFF3FB" />
  24.             <EditRowStyle BackColor="#2461BF" />
  25.         </asp:GridView>
  26.         <asp:AccessDataSource ID="AccessDataSource1" runat="server" ConflictDetection="CompareAllValues"
  27.             DataFile="~/User.DMB.mdb" DeleteCommand="DELETE FROM [UserSheet] WHERE [LoginName] = ? AND [UserName] = ? AND [Address] = ?"
  28.             InsertCommand="INSERT INTO [UserSheet] ([UserName], [Address], [LoginName]) VALUES (?, ?, ?)"
  29.             OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [UserName], [Address], [LoginName] FROM [UserSheet] WHERE ([LoginName] = ?)"
  30.             UpdateCommand="UPDATE [UserSheet] SET [UserName] = ?, [Address] = ? WHERE [LoginName] = ? AND [UserName] = ? AND [Address] = ?">
  31.             <DeleteParameters>
  32.                 <asp:Parameter Name="original_LoginName" Type="String" />
  33.                 <asp:Parameter Name="original_UserName" Type="String" />
  34.                 <asp:Parameter Name="original_Address" Type="String" />
  35.             </DeleteParameters>
  36.             <UpdateParameters>
  37.                 <asp:Parameter Name="UserName" Type="String" />
  38.                 <asp:Parameter Name="Address" Type="String" />
  39.                 <asp:Parameter Name="original_LoginName" Type="String" />
  40.                 <asp:Parameter Name="original_UserName" Type="String" />
  41.                 <asp:Parameter Name="original_Address" Type="String" />
  42.             </UpdateParameters>
  43.             <SelectParameters>
  44.                 <asp:SessionParameter DefaultValue="" Name="LoginName" SessionField="user" Type="String" />
  45.             </SelectParameters>
  46.             <InsertParameters>
  47.                 <asp:Parameter Name="UserName" Type="String" />
  48.                 <asp:Parameter Name="Address" Type="String" />
  49.                 <asp:Parameter Name="LoginName" Type="String" />
  50.             </InsertParameters>
  51.         </asp:AccessDataSource>
  52.         <asp:Button ID="Button1" runat="server" Style="position: relative; left: 8px; top: 0px;" Text="删除此用户" />
  53.             <asp:Button ID="Button2" runat="server" Style="position: relative; left: 27px; top: 0px;" Text="更改密码" />
  54.             <asp:Button ID="Button4" runat="server" Style="position: relative; left: 49px; top: 0px;" Text="注销" /></asp:Panel>
  55.         &nbsp;&nbsp;
  56.         <asp:Panel ID="Panel2" runat="server" Height="96px" Style="left: 152px; position: relative;
  57.             top: 0px" Width="280px" Visible="False" BackColor="#00C0C0" BorderStyle="Ridge">
  58.             <asp:Panel ID="Panel3" runat="server" BackColor="Teal" Height="24px" Style="left: 1px;
  59.                 position: relative; top: 0px" Width="280px">
  60.                 <asp:Label ID="Label1" runat="server" BackColor="Teal" Style="left: 104px; position: relative;
  61.                     top: 0px" Text="更改密码"></asp:Label></asp:Panel>
  62.             <asp:Panel ID="Panel4" runat="server" Height="24px" Style="left: 0px; position: relative;
  63.                 top: 0px" Width="280px">
  64.                 <asp:Label ID="Label2" runat="server" Height="24px" Style="position: relative" Text="输入原密码:"
  65.                     Width="88px" Font-Size="Smaller"></asp:Label>
  66.                 <asp:TextBox ID="TextBox1" runat="server" Style="left: 0px; position: relative; top: 0px"
  67.                     TextMode="Password"></asp:TextBox>
  68.                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
  69.                     ErrorMessage="必须填写“原密码”。" Style="position: relative">*</asp:RequiredFieldValidator></asp:Panel>
  70.             <asp:Panel ID="Panel5" runat="server" Height="24px" Style="left: 0px; position: relative;
  71.                 top: 0px" Width="280px">
  72.                 <asp:Label ID="Label3" runat="server" Height="24px" Style="position: relative" Text="输入新密码:"
  73.                     Width="88px" Font-Size="Smaller"></asp:Label>
  74.                 <asp:TextBox ID="TextBox2" runat="server" Style="left: 0px; position: relative; top: 0px"
  75.                     TextMode="Password"></asp:TextBox>
  76.                 <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="TextBox2"
  77.                     ErrorMessage="必须填写“新密码”。" Style="position: relative">*</asp:RequiredFieldValidator></asp:Panel>
  78.             <asp:Label ID="Label4" runat="server" Height="24px" Style="position: relative" Text="新密码确认:"
  79.                 Width="88px" Font-Size="Smaller"></asp:Label>
  80.             <asp:TextBox ID="TextBox3" runat="server" Style="position: relative" TextMode="Password"></asp:TextBox>
  81.             <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="TextBox3"
  82.                 ErrorMessage="必须填写“确认密码”。" Style="position: relative">*</asp:RequiredFieldValidator><br />
  83.             <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="TextBox2"
  84.                 ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="“密码”和“确认密码”不一致,请重新输入"
  85.                 Style="left: 12px; position: relative; top: 0px" ValidationGroup="CreateUserWizard1" Font-Size="Smaller"></asp:CompareValidator><br />
  86.             <asp:Label ID="Label7" runat="server" ForeColor="Red" Height="16px" Style="left: 8px;
  87.                 position: relative; top: 0px" Text="您输入的原密码不正确,请重新输入!" Visible="False" Width="272px" Font-Size="Smaller"></asp:Label><br />
  88.             <asp:Button ID="Button3" runat="server" Style="position: relative; left: 8px; top: 0px;" Text="更改密码" />&nbsp;&nbsp;
  89.             <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/LoggedIn.aspx" Style="left: 96px;
  90.                 position: relative; top: -6px" Font-Size="Smaller">取消更改</asp:HyperLink></asp:Panel>
  91.         <asp:Panel ID="Panel7" runat="server" BackColor="White" Height="80px" Style="left: 152px;
  92.             position: relative; top: -6px" Visible="False" Width="272px">
  93.             <asp:Label ID="Label6" runat="server" Height="24px" Style="left: 8px; position: relative;
  94.                 top: 8px" Text="确定删除吗?删除帐户后将不可恢复!" Width="256px" ForeColor="#C00000"></asp:Label>
  95.             <asp:Button ID="Button6" runat="server" Style="left: 157px; position: relative; top: 16px"
  96.                 Text="返回" Height="22px" />
  97.             <asp:Button ID="Button7" runat="server" Style="left: 25px; position: relative; top: 16px"
  98.                 Text="删除" Height="22px" /></asp:Panel>
  99.         <asp:Panel ID="Panel6" runat="server" Height="64px" Style="left: 152px; position: relative;
  100.             top: -6px" Visible="False" Width="272px" BackColor="White">
  101.             <asp:Label ID="Label5" runat="server" Font-Size="X-Large" Height="32px" Style="left: 48px;
  102.                 position: relative; top: 0px" Text="密码更改成功!" Width="160px"></asp:Label>
  103.             <asp:Button ID="Button5" runat="server" Style="left: -46px; position: relative; top: 32px"
  104.                 Text="返回" /></asp:Panel>
  105.     </form>
  106. </body>
  107. </html>