📄 editstudent.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditStudent.aspx.cs" Inherits="_Default" %>
<!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="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body >
<form id="form1" runat="server">
<div align ="center" >
<table style="width: 850px; height: 340px" cellpadding="0" cellspacing="0" align="center" id="TABLE1">
<tr>
<td align="center" background="BG/007.jpg" colspan="5" style="font-weight: bold;
font-size: 25px; color: #ffffff; height: 21px; background-color: #ffffff">
学生信息管理
<asp:Label ID="Label2" runat="server" Font-Size="11px" ForeColor="Red" Width="295px"></asp:Label></td>
</tr>
<tr>
<td align="right" colspan="4" style="background-color: #ffffff; width: 7461px; height: 22px;">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="False" Font-Size="Small"
ForeColor="Black" Text="具体查询:"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="StudentID">学号</asp:ListItem>
<asp:ListItem Value="Name">姓名</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="Infor_box" runat="server" ></asp:TextBox>
</td>
<td style="height: 22px; background-color: #ffffff;" align="center" width="10">
<table>
<tr>
<td style="width: 100px">
<asp:Button ID="chaxun_btn" runat="server" Text="查询" Font-Bold="True" Font-Size="Small" Font-Underline="True" OnClick="chaxun_btn_Click" /></td>
<td style="width: 100px">
<asp:ImageButton
ID="ImageButton5" runat="server" ImageUrl="~/Img/newtopic.gif" OnClick="ImageButton5_Click" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="5" align="center" style="height: 269px" valign="top" width="280" >
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
BackColor="MenuBar" BorderColor="White" BorderStyle="None" BorderWidth="1px"
CellPadding="2" CellSpacing="-1" ForeColor="Black" GridLines="None" Height="20px"
HorizontalAlign="Center" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit"
OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting"
OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" PageSize="7"
Width="850px">
<Columns>
<asp:BoundField DataField="StudentID" HeaderText="学号" >
</asp:BoundField>
<asp:BoundField DataField="ClassID" HeaderText="班级" />
<asp:BoundField DataField="Name" HeaderText="姓名" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="Age" HeaderText="年龄" />
<asp:BoundField DataField="Sex" HeaderText="性别" />
<asp:CommandField ButtonType="Image" CancelImageUrl="~/Img/delete.gif" CancelText="取 消"
EditImageUrl="~/Img_Button/post_button_edit.gif" EditText="编 辑" HeaderText="编辑"
ShowEditButton="True" UpdateImageUrl="~/Img/edit.gif">
<ItemStyle HorizontalAlign="Center" />
</asp:CommandField>
<asp:CommandField ButtonType="Image" DeleteImageUrl="~/Img_Button/post_button_delete.gif"
HeaderText="删除" ShowDeleteButton="True">
<ItemStyle HorizontalAlign="Center" />
</asp:CommandField>
</Columns>
<PagerTemplate>
<table style="width: 535px; height: 24px">
<tr>
</tr>
</table>
<table align="right">
<tbody>
<tr>
<td>
<asp:Label ID="LabelCurrentPage" runat="server" Font-Size="Small">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label></td>
<td>
<asp:Label ID="LabelPageCount" runat="server" Font-Size="Small">总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label></td>
<td style="width: 29px">
<asp:ImageButton ID="ImageButton1" runat="server" CommandArgument="First" CommandName="page"
ImageUrl="~/Img/bfirst.gif" /></td>
<td>
<asp:ImageButton ID="ImageButton2" runat="server" CommandArgument="prev" CommandName="page"
ImageUrl="~/Img/bprev.gif" /></td>
<td>
<asp:ImageButton ID="ImageButton3" runat="server" CommandArgument="next" CommandName="page"
ImageUrl="~/Img/bnext.gif" /></td>
<td>
<asp:ImageButton ID="ImageButton4" runat="server" CommandArgument="last" CommandName="page"
ImageUrl="~/Img/btail.gif" /></td>
</tr>
</tbody>
</table>
</PagerTemplate>
<SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"
Wrap="True" />
<EditRowStyle BorderStyle="None" BorderWidth="0px" Height="18px" HorizontalAlign="Center" />
<FooterStyle BackColor="#CCCC99" ForeColor="Black" Height="20px" />
</asp:GridView>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -