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

📄 editcourse.aspx

📁 程序学生信息管理系统(SQL2000+ASP.NET+c#+)
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditCourse.aspx.cs" Inherits="_Default2" %>

<!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 background="Img/bg.gif" bgproperties="fixed">
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" style="height: 350px; width: 849px; border-top-width: thin; border-left-width: thin; border-left-color: #ccffff; border-bottom-width: thin; border-bottom-color: #ccffff; border-top-color: #ccffff; border-right-width: thin; border-right-color: #ccffff;">
            <tr>
                <td align="center" background="BG/007.jpg" bgcolor="#ffffff" colspan="4" height="30"
                    style="font-weight: bold; font-size: 25px; color: #ffffff">
                    课程信息管理</td>
                <td bgcolor="#ffffff" style="height: 15px">
                </td>
            </tr>
            <tr>
                <td style="width: 19256px;" bgcolor="#ffffff" align="right" height="30">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="11px" Text="具体查询:"></asp:Label>
                    <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Img/newtopic.gif" OnClick="ImageButton5_Click" />
                </td>
                <td style="width: 1960px; height: 15px" bgcolor="#ffffff">
                    </td>
                <td style="width: 110px; height: 15px" bgcolor="#ffffff">
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="80px" Height="18px">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 100px; height: 15px" bgcolor="#ffffff">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" /></td>
                <td style="height: 15px" bgcolor="#ffffff">
                </td>
            </tr>
            <tr>
                <td colspan="4" rowspan="2" align="center" valign="top" height="285">
                    <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="2px"
                        HorizontalAlign="Center" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                        OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting"
                        OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" PageSize="6"
                        Width="850px">
                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" Height="20px" />
                        <Columns>
                              <asp:BoundField DataField="Desn" HeaderText="课程名称" ReadOnly="True">
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Body" HeaderText="课程介绍">
                                <ItemStyle HorizontalAlign="Left" Wrap="False" Width="100px" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="StartDate" HeaderText="开课时间">
                                <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EndDate" HeaderText="结束时间">
                                <ItemStyle HorizontalAlign="Left" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CourseHour" HeaderText="课时">
                                <ItemStyle Wrap="False" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="授课老师">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DropDownList2" runat="server" DataSource =<%# bindr()%>
                                        DataTextField="Name" DataValueField="TeacherID">
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text=""><%#Eval ("Name") %></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ExamineDate" HeaderText="考试时间">
                                <ItemStyle HorizontalAlign="Right" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TotalMark" 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>
                        <EditRowStyle BorderStyle="None" BorderWidth="0px" Height="18px" HorizontalAlign="Center" />
                        <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" />
                    </asp:GridView>
                    <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="11px" ForeColor="Red" Width="123px"></asp:Label></td>
                <td style="height: 140px">
                </td>
            </tr>
            <tr>
                <td style="height: 19px">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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