1 <%@ Page Language="C#" %>
\r
3 <%@ Register Src="EmployeeControl.ascx" TagName="Employee" TagPrefix="uc" %>
\r
4 <%@ Register Assembly="Castle.MonoRail.Framework" Namespace="Castle.MonoRail.Framework.Views.Aspx" TagPrefix="mr" %>
\r
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
\r
9 <html xmlns="http://www.w3.org/1999/xhtml" >
\r
10 <head runat="server">
\r
11 <title>Untitled Page</title>
\r
14 <form id="form1" runat="server">
\r
16 <uc:Employee ID="ucEmployee" runat="server" />
\r
19 <asp:HyperLink ID="lnkIndex" NavigateUrl="~/binding/Index.rails" runat="server">Index</asp:HyperLink>
\r
21 <mr:ControllerBinder ID="ControllerBinder" runat="server">
\r
22 <mr:ControllerBinding controlID="ucEmployee">
\r
23 <mr:ActionBinding EventName="AddEmployee" ActionName="AddEmployee">
\r
25 <mr:ActionArgument Expression="$event.Name" Name="name" />
\r
26 <mr:ActionArgument Expression="$event.Country" Name="country" />
\r
29 <mr:ActionBinding EventName="RemoveEmployee" ActionName="RemoveEmployee">
\r
31 <mr:ActionArgument Expression="$event.Id" Name="id" />
\r
33 </mr:ActionBinding>
\r
34 </mr:ControllerBinding>
\r
35 </mr:ControllerBinder>
\r