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

📄 teachershangchuan.aspx

📁 学生网上选课系统,实现了学生的在线选课和教师课程的上传
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
                                </ItemTemplate>
                                <ItemStyle Wrap="False" />
                                <HeaderStyle Wrap="False" />
                            </asp:TemplateField>
                            
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" EditText="删除" >
                                <ItemStyle Wrap="False" />
                                <HeaderStyle Wrap="False" />
                            </asp:CommandField>
                        </Columns>
                        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" Wrap="False" />
                        <AlternatingRowStyle BackColor="Gainsboro" />
                        <PagerTemplate>
                      <table>
                       <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>
                                            <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                                Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>" Font-Size="Small">首页</asp:LinkButton></td>
                                        <td>
                                            <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                                                CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>"
                                                Font-Size="Small">上一页</asp:LinkButton></td>
                                        <td>
                                            <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                                Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
                                                Font-Size="Small">下一页</asp:LinkButton></td>
                                        <td>
                                            <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                                Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
                                                Font-Size="Small">尾页</asp:LinkButton></td>
                                    </tr>
                      </table>
                    </PagerTemplate>
                    </asp:GridView>                   
                </td>
            </tr>
            <tr>
                <td style="width: 647px">
                    <table id="table2" style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; width: 105%;" borderColor="#2c6ed5"
								cellSpacing="0" cellPadding="2" align="center" border="1">
                        <tr>
                            <td align="right" style="width: 85px">
                                *课程编号:</td>
                            <td style="text-align: left" >
                                &nbsp;<asp:TextBox ID="txtCourceID" runat="server" Width="100px"></asp:TextBox></td>
                            <td align="right" nowrap style="width: 81px">
                                限选人数:</td>
                            <td style="width: 209px; text-align: left;">
                                <asp:TextBox ID="courcerenshu" runat="server" Width="100px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td align="right" nowrap style="width: 85px">
                                课程类别:</td>
                             <td style="text-align: left">
                                 <asp:DropDownList ID="ddltypeName" runat="server" DataSourceID="SqlDataSource1"
                                     DataTextField="typename" DataValueField="typeID" Width="105px">
                                 </asp:DropDownList>
                                 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:pengpengConnectionString %>"
                                     SelectCommand="SELECT [typeID], [typename] FROM [type]"></asp:SqlDataSource>
                             </td>                   
                             <td align="right" style="width: 81px">
                                所属院系:</td>
                             <td style="width: 209px; text-align: left;">
                                 <asp:DropDownList ID="ddldepart" runat="server" DataSourceID="SqlDataSource3"
                                    DataTextField="departName" DataValueField="departID" Width="181px">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:pengpengConnectionString %>"
                                    SelectCommand="SELECT [departID], [departName] FROM [Depart]"></asp:SqlDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 85px; height: 29px;">
                                课程名称:</td>
                             <td colspan="3" style="text-align: left; height: 29px;"><asp:TextBox ID="txtCourceName" runat="server" Width="230px"></asp:TextBox></td>                    
                        </tr>
                        <tr>
                            <td align="right" style="width: 85px">
                                上课时间:</td>
                             <td style="text-align: left" ><asp:TextBox ID="txtTime" runat="server" Width="100px"></asp:TextBox></td>          
                            <td align="right" nowrap style="width: 81px">
                                上课地点:</td>
                             <td style="width: 209px; text-align: left;"><asp:TextBox ID="txtAddress" runat="server" Width="100px"></asp:TextBox></td>
                                
                        </tr>
                        <tr>
                            <td align="right" style="height: 19px; width: 85px;">
                                课程学时:</td>
                            <td style="height: 19px; text-align: left;">
                                <asp:TextBox ID="xueshi" runat="server" Width="100px"></asp:TextBox></td>
                            <td align="right" nowrap="nowrap" style="height: 19px; width: 81px;">
                                课程学分:</td>
                            <td style="width: 209px; height: 19px; text-align: left;">
                                <asp:TextBox ID="credit" runat="server" Width="101px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td align="right" style="height: 83px; width: 85px;">
                                课程简介:</td>
                             <td colspan="3" style="text-align: left"><asp:TextBox ID="txtCourceInformation" runat="server" TextMode="MultiLine" Height="118px" Width="347px"></asp:TextBox></td>
                                
                        </tr>
                        <tr>
                            <td colspan="4" align="center" style="height: 44px">
                                <asp:ImageButton ID="imgBtnAdd" runat="server" ImageUrl="~/Images/ADD.GIF" OnClick="imgBtnAdd_Click" />
                                
                                <asp:ImageButton ID="imgBtnReset" runat="server" ImageUrl="~/Images/RESET.GIF" OnClick="imgBtnReset_Click" />
                                <br />
                                <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label></td>
                                
                        </tr>
					</table>
                </td>
            </tr>
            
        </table>
                </td>
                <td align="center" style="width: 100px" valign="top">
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 100px" valign="top">
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 101px; height: 71px" valign="top">
                </td>
                <td align="center" style="background-image: url(Images/Index_30.gif); width: 100px;
                    height: 71px" valign="top">
                </td>
                <td align="center" style="width: 100px; height: 71px" valign="top">
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 101px" valign="top">
                </td>
                <td align="center" style="width: 100px" valign="top">
                </td>
                <td align="center" style="width: 100px" valign="top">
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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