?? editgrade_class.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditGrade_Class.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>
<div align="center">
<table border="1" bordercolor="#ffffff" cellpadding="0" cellspacing="0" style="width: 850px;
height: 387px">
<tr>
<td background="BG/007.jpg" colspan="7" scope="0" style="font-weight: bold;
font-size: 25px; color: #ffffff; font-family: 楷體_GB2312; background-color: #66ffff; height: 50px;">
年級和班級管理
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Italic="False" Font-Size="13px"
ForeColor="Red" Width="196px"></asp:Label></td>
</tr>
<tr>
<td align="right" bgcolor="#ffffff" style="width: 189px; height: 25px;">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Text="年級和班級查詢:" Width="117px"></asp:Label></td>
<td align="right" bgcolor="#ffffff" style="width: 97px; height: 25px;">
<asp:DropDownList ID="DropDownList1" runat="server" Font-Bold="True" Font-Size="12px"
Width="80px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem Value="Department.Desn">所屬部門</asp:ListItem>
<asp:ListItem Value="Grade.Desn">所屬年級</asp:ListItem>
<asp:ListItem Value="Teacher.Name">輔導員</asp:ListItem>
</asp:DropDownList></td>
<td bgcolor="#ffffff" width="100" style="height: 25px">
<asp:DropDownList ID="DropDownList2" runat="server" Font-Bold="True" Font-Size="12px"
Width="100px">
</asp:DropDownList></td>
<td bgcolor="#ffffff" style="height: 25px; width: 3px;">
<asp:ImageButton ID="ImageButton6" runat="server" ImageUrl="~/Img/newtopic.gif" OnClick="ImageButton6_Click" /> </td>
<td align="right" bgcolor="#ffffff" style="width: 115px; height: 25px;">
模糊查詢: </td>
<td bgcolor="#ffffff" style="font-weight: bold; height: 25px;" width="100">
<asp:TextBox ID="TextBox2" runat="server" Height="15px" Width="93px"></asp:TextBox></td>
<td bgcolor="#ffffff" width="100" style="height: 25px">
<asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Img/post_button_search.gif"
OnClick="ImageButton5_Click" /></td>
</tr>
<tr>
<td align="center" background="BG/logo_right.gif" colspan="7" rowspan="2" style="height: 294px"
valign="top">
<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="ClassID" HeaderText="班級ID" ReadOnly="True" />
<asp:BoundField DataField="a" HeaderText="班級名稱" ReadOnly="True">
<ItemStyle HorizontalAlign="Center" Font-Size="11px" Wrap="False" />
</asp:BoundField>
<asp:BoundField DataField="b" HeaderText="所屬年級" ReadOnly="True">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="c" HeaderText="所屬部門" ReadOnly="True" />
<asp:TemplateField HeaderText="輔導員">
<EditItemTemplate>
<asp:DropDownList ID="DropDownList3" runat="server" DataSource = <%# bindr()%> DataTextField="Name" DataValueField="TeacherID">
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server"><%#Eval("Name") %></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="StuNum" HeaderText="班級人數">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="StartDate" HeaderText="開學時間" ReadOnly="True">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="EndDate" HeaderText="畢業時間" ReadOnly="True">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<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>
<tr>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -