📄 editmajor.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditMajor.ascx.cs" Inherits="TeachHelper_Controls_EditMajor" %>
<table style="width: 225px">
<tr>
<td colspan="3">
院系:<asp:DropDownList ID="DropDownListDepartment" runat="server" AutoPostBack="True"
DataSourceID="ObjectDataSourceDepartment" DataTextField="Name" DataValueField="Id"
OnSelectedIndexChanged="DropDownListDepartment_SelectedIndexChanged">
</asp:DropDownList></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<asp:GridView ID="GridViewMajor" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Id" ForeColor="#333333"
GridLines="None" OnPageIndexChanging="GridViewMajor_PageIndexChanging" OnRowCancelingEdit="GridViewMajor_RowCancelingEdit"
OnRowDataBound="GridViewMajor_RowDataBound" OnRowDeleting="GridViewMajor_RowDeleting"
OnRowEditing="GridViewMajor_RowEditing" OnRowUpdating="GridViewMajor_RowUpdating"
PageSize="5" RowHeaderColumn="Id">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="Id" HeaderText="编号" ReadOnly="True" />
<asp:BoundField DataField="Name" HeaderText="名称" />
<asp:CommandField ButtonType="Image" CancelImageUrl="~/TeachHelper/images/icon-cancel.gif"
CancelText="取消" EditImageUrl="~/TeachHelper/images/icon-edit.gif" EditText="编辑"
HeaderText="编辑" ShowEditButton="True" UpdateImageUrl="~/TeachHelper/images/icon-save.gif"
UpdateText="更新">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:CommandField>
<asp:CommandField ButtonType="Image" DeleteImageUrl="~/TeachHelper/images/icon-delete.gif"
DeleteText="删除" HeaderText="删除" ShowDeleteButton="True">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:CommandField>
</Columns>
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
</tr>
</table>
<asp:ObjectDataSource ID="ObjectDataSourceDepartment" runat="server" SelectMethod="GetCollect"
TypeName="TeachHelper.BusinessLogicLayer.Department"></asp:ObjectDataSource>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -