2 using System
.Collections
;
3 using System
.ComponentModel
;
7 using System
.Web
.SessionState
;
9 using System
.Web
.UI
.WebControls
;
10 using System
.Web
.UI
.HtmlControls
;
11 using Castle
.MonoRail
.Framework
;
13 namespace AspnetSample
.views
.registration
16 /// Summary description for index.
18 public class index
: System
.Web
.UI
.Page
, IControllerAware
20 protected System
.Web
.UI
.WebControls
.TextBox name
;
21 protected System
.Web
.UI
.WebControls
.TextBox address
;
22 protected System
.Web
.UI
.WebControls
.TextBox city
;
23 protected System
.Web
.UI
.WebControls
.TextBox country
;
24 protected System
.Web
.UI
.WebControls
.TextBox age
;
25 protected System
.Web
.UI
.WebControls
.Button Save
;
26 private Controller _controller
;
28 private void Page_Load(object sender
, System
.EventArgs e
)
32 #region Web Form Designer generated code
33 override protected void OnInit(EventArgs e
)
36 // CODEGEN: This call is required by the ASP.NET Web Form Designer.
38 InitializeComponent();
43 /// Required method for Designer support - do not modify
44 /// the contents of this method with the code editor.
46 private void InitializeComponent()
48 //this.Save.Click += new System.EventHandler(this.OnSave);
49 this.Load
+= new System
.EventHandler(this.Page_Load
);
54 public void SetController(Controller controller
)
56 _controller
= controller
;
59 public void OnSave(object sender
, EventArgs args
)
65 //_controller.Send( "Save" );