Changed to use Authenticate asp.net event instead of Authorize
[castle.git] / MonoRail / TestSite / views / binding / UserControls.aspx
blob0e79a6f37822d937c09e4e9765721dd0352340db
1 <%@ Page Language="C#" %>\r
2 \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
5 \r
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
7 \r
8 \r
9 <html xmlns="http://www.w3.org/1999/xhtml" >\r
10 <head runat="server">\r
11     <title>Untitled Page</title>\r
12 </head>\r
13 <body>\r
14     <form id="form1" runat="server">\r
15     <div>\r
16                 <uc:Employee ID="ucEmployee" runat="server" />\r
17     </div>\r
18     <br />\r
19         <asp:HyperLink ID="lnkIndex" NavigateUrl="~/binding/Index.rails" runat="server">Index</asp:HyperLink>   \r
20     </form>\r
21         <mr:ControllerBinder ID="ControllerBinder" runat="server">\r
22                 <mr:ControllerBinding controlID="ucEmployee">\r
23                         <mr:ActionBinding EventName="AddEmployee" ActionName="AddEmployee">\r
24                                 <ActionArguments>\r
25                                         <mr:ActionArgument Expression="$event.Name" Name="name" />\r
26                                         <mr:ActionArgument Expression="$event.Country" Name="country" />\r
27                                 </ActionArguments>\r
28                         </mr:ActionBinding>\r
29                         <mr:ActionBinding EventName="RemoveEmployee" ActionName="RemoveEmployee">\r
30                                 <ActionArguments>\r
31                                         <mr:ActionArgument Expression="$event.Id" Name="id" />\r
32                                 </ActionArguments>\r
33                         </mr:ActionBinding>                     \r
34                 </mr:ControllerBinding> \r
35         </mr:ControllerBinder> \r
36 </body>\r
37 </html>\r