📄 stumanage.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StuManage.aspx.cs" Inherits="StuManage" %>
<%@ Register Src="ascx/NewPsw.ascx" TagName="NewPsw" TagPrefix="uc3" %>
<%@ Register Src="ascx/Contact.ascx" TagName="Contact" TagPrefix="uc4" %>
<%@ Register Src="ascx/BookBorrow.ascx" TagName="BookBorrow" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>学生管理</title>
</head>
<body style="background-image: url(image/2005617193712391.jpg)">
<form id="form1" runat="server">
<div align="center" >
<asp:Menu ID="Menu1" runat="server" BackColor="#B5C7DE" DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="XX-Large" ForeColor="#284E98" Orientation="Horizontal"
StaticSubMenuIndent="10px" OnMenuItemClick="Menu1_MenuItemClick">
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
<DynamicMenuStyle BackColor="#B5C7DE" />
<StaticSelectedStyle BackColor="#507CD1" />
<DynamicSelectedStyle BackColor="#507CD1" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<Items>
<asp:MenuItem Text="个人信息" Value="StuInfo"></asp:MenuItem>
<asp:MenuItem Text="书刊借阅" Value="BookBorrow"></asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#284E98" ForeColor="White" />
</asp:Menu><br /><br />
<asp:MultiView ID="MultiView1" runat="server">
<asp:View ID="StuInfo" runat="server">
<table border="0" cellspacing="0" style="border-bottom-width: medium; border-bottom-color: royalblue; width: 319px;" cellpadding="0">
<tr >
<td style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px;
color: black; height: 20px; width: 149px;" align="left" >
<asp:Label ID="Label1" runat="server" BackColor="RoyalBlue" Font-Size="X-Large" ForeColor="White"
Text="个人信息"></asp:Label></td>
</tr>
</table>
<table style="border-left-color: royalblue; border-bottom-color: royalblue; border-top-style: solid; border-top-color: royalblue; border-right-style: solid; border-left-style: solid; border-right-color: royalblue; border-bottom-style: solid; width: 319px;"><tr><td>
<asp:DataList ID="InfoList" runat="server" DataSourceID="SqlDataSource1" Font-Size="Medium"
UseAccessibleHeader="True" Width="300px">
<ItemTemplate>
用户名:
<asp:Label ID="UserIDLabel" runat="server" Text='<%# Eval("UserID") %>'></asp:Label><br />
性别:
<asp:Label ID="SexLabel" runat="server" Text='<%# Eval("Sex") %>'></asp:Label><br />
密码:
<asp:Label ID="PasswordLabel" runat="server" Text='<%# Eval("Password") %>'></asp:Label><br />
邮箱:
<asp:Label ID="EmailLabel" runat="server" Text='<%# Eval("Email") %>'></asp:Label><br />
所在班级:
<asp:Label ID="ClassLabel" runat="server" Text='<%# Eval("Class") %>'></asp:Label><br />
电话号码:
<asp:Label ID="TelephoneLabel" runat="server" Text='<%# Eval("Telephone") %>'></asp:Label>
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:library1ConnectionString %>"
SelectCommand="SELECT DISTINCT * FROM [UserInfo] WHERE ([UserID] = @UserID)">
<SelectParameters>
<asp:SessionParameter Name="UserID" SessionField="UserID" Type="String" />
</SelectParameters>
</asp:SqlDataSource></td>
</tr>
<tr><td align="center" style="height: 50px" valign="middle">
<asp:Button ID="Button1" runat="server" BackColor="RoyalBlue" ForeColor="White" OnClick="Button1_Click"
Text="修改个人密码" />
<asp:Button ID="Button2" runat="server" BackColor="RoyalBlue" ForeColor="White" OnClick="Button2_Click"
Text="修改联系方式" />
</td></tr></table>
</asp:View>
<asp:View ID="BookBorrow" runat="server">
<uc2:BookBorrow ID="BookBorrow1" runat="server" />
</asp:View>
<asp:View ID="NewPsw" runat="server">
<uc3:NewPsw ID="NewPsw1" runat="server" />
</asp:View>
<asp:View ID="Contact" runat="server">
<uc4:Contact ID="Contact1" runat="server" />
</asp:View>
</asp:MultiView> </div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -