📄 teacherinfoview.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="teacherInfoView.aspx.cs" Inherits="teacherInfoView" %>
<!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>
<link href="css/child.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<h1 align="center">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<span style="color: #3399ff">
<span style="font-size: 16pt;">
老师信息管理</span></span></h1>
<table id="mytable" cellspacing="0" borderColor="#0066cc" width="800" align="center" border="1" cellpadding="0">
<tr>
<td><FONT face="宋体"><span style="font-size: 11pt"><strong>以下是所有教师的信息</strong></span></FONT></td>
</tr>
<tr>
<td align="center">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
ForeColor="#333333" GridLines="None" Width="786px" AllowPaging="True" DataKeyNames="teacherId" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="teacherId" HeaderText="教师ID" SortExpression="teacherId" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="teacherName" HeaderText="教师姓名" SortExpression="teacherName" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="teacherPwd" HeaderText="密码" SortExpression="teacherPwd" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="courseId" HeaderText="所教科目ID" SortExpression="courseId" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:TemplateField HeaderText="删除">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
Text="删除" OnClientClick="return confirm('您确定要删除吗?')" ></asp:LinkButton>
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
</asp:TemplateField>
</Columns>
<RowStyle BackColor="#E3EAEB" />
<EditRowStyle BackColor="#7C6F57" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#666666" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="PageIndexChanged" />
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowDeleting" />
<asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:label id="lbl_noResult" runat="server" Visible="False" ForeColor="Red">没有任何记录</asp:label></td>
</tr>
<tr>
<td><FONT face="宋体"></FONT></td>
</tr>
<tr >
<td align="center" style="height: 225px"><h1 align="center">
<span style="font-size: 12pt">教师注册</span></h1>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<table id="mytable" cellspacing="0" bordercolor="#000099" border="0" style="width: 314px">
<tr>
<td style="width: 110px"><FONT face="宋体"><span style="font-size: 10pt">用户名 : </span></FONT></td>
<td align="left">
<asp:TextBox id="tbx_teacherId" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td class="alt" style="width: 110px"><FONT face="宋体"><span style="font-size: 10pt">真实姓名:</span></FONT></td>
<td class="alt" align="left">
<asp:TextBox id="tbx_teacherName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 110px; height: 38px;"><FONT face="宋体"><span style="font-size: 10pt">密 码:</span></FONT></td>
<td align="left" style="height: 38px">
<asp:TextBox id="tbx_teacherPwd" runat="server" TextMode="Password" Width="151px"></asp:TextBox></td>
</tr>
<tr>
<td class="alt" style="width: 110px"><FONT face="宋体"><span style="font-size: 10pt">确认密码:</span></FONT></td>
<td class="alt" align="left">
<asp:TextBox id="TextBox1" runat="server" TextMode="Password" Width="153px"></asp:TextBox></td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/yes.gif" OnClick="ImageButton1_Click" />
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/image/取消1.gif" OnClick="ImageButton2_Click" /><br />
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Font-Size="Large"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -