<Columns>
<asp:BoundField DataField=
<asp:BoundField DataField=
<asp:BoundField DataField=
HeaderText=
DataFormatString=
<asp:BoundField DataField=
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>
如下所示的是該Web頁面的後台代碼的定義
public partial class Default : Page
{
public EmployeeSearchPresenter Presenter { get; private set; }
public event EventHandler<DepartmentSelectedEventArgs> DepartmentSelected;
public Default()
{
this
}
protected void Page_Load(object sender
{
if (!this
{
this
}
}
protected void ButtonSearch_Click(object sender
{
string department = this
DepartmentSelectedEventArgs eventArgs =
new DepartmentSelectedEventArgs(department)
if (null != DepartmentSelected)
{
DepartmentSelected(this
}
}
public void BindEmployees(IEnumerable<Employee> employees)
{
this
this
}
public void BindDepartments(IEnumerable<string> departments)
{
this
this
}
}
返回目錄
編輯推薦
Java程序性能優化
Visual C++音頻/視頻技術開發與實戰
[
From:http://tw.wingwit.com/Article/program/net/201311/16125.html