⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editgrade_class.aspx

📁 程序学生信息管理系统(SQL2000+ASP.NET+c#+)
💻 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;">
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;年级和班级管理&nbsp; &nbsp;
                        <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" />&nbsp;</td>
                    <td align="right" bgcolor="#ffffff" style="width: 115px; height: 25px;">
                        模糊查询:&nbsp;</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">
                        &nbsp;
                        <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>
                                &nbsp;
                            </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>
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;</td>
                </tr>
                <tr>
                </tr>
            </table>
        </div>
        &nbsp; &nbsp; &nbsp;
    
    &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -