ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)_[Asp.Net教程]
3.6. 人事子系统表示层(Web)
修改Depts.aspx
AutoGenerateColumns="False" Width="100%" AllowPaging="true" PageSize="10">
部门代码
部门名称
SelectMethod="GetAllDepts" InsertMethod="CreateDept" UpdateMethod="UpdateDept"
DeleteMethod="DeleteDept">
修改Employees.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Employees.aspx.cs" Inherits="Employees" %>
AutoGenerateColumns="False" Width="100%" AllowPaging="true" PageSize="10">
DataSourceID="odsDepts" SelectedValue='<%# Bind("DeptID") %>'>
工号
姓名
部门
DataSourceID="odsDepts" SelectedValue='<%# Bind("DeptID") %>'>
SelectMethod="GetAllEmployees" InsertMethod="CreateEmployee" UpdateMethod="UpdateEmployee"
DeleteMethod="DeleteEmployee">
SelectMethod="GetAllDepts">