Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Attic / MVC / Castle.MVC.Test.Web / Views / page2.aspx.cs
blob8fa352df1312e981e23072c2e3e60fc782fb16b1
1 using System;
2 using System.Web.UI.WebControls;
3 using Castle.MVC.Test.Presentation;
4 using Castle.MVC.Views;
6 namespace Castle.MVC.Test.Web.Views
8 /// <summary>
9 /// Description résumée de page2.
10 /// </summary>
11 public class page2 : WebFormView
13 protected Button Button;
14 protected System.Web.UI.WebControls.Label LabelPreviousView;
15 private HomeController _homeController;
17 private void Page_Load(object sender, EventArgs e)
19 string s= (this.State as MyApplicationState).SomeSessionString;
20 if (s!="SomeSessionString")
22 int i =0;
23 i = 1/i;
25 LabelPreviousView.Text = this.State.PreviousView;
28 public HomeController HomeController
30 set
32 _homeController = value;
36 private void Button_Click(object sender, EventArgs e)
38 this.State["toto"] = "fdfsdfdsf";
39 (this.State as MyApplicationState).SomeSessionString = "SomeSessionString";
40 _homeController.Login2("ggg","");
44 #region Code généré par le Concepteur Web Form
45 override protected void OnInit(EventArgs e)
48 // CODEGEN : Cet appel est requis par le Concepteur Web Form ASP.NET.
50 InitializeComponent();
51 base.OnInit(e);
54 /// <summary>
55 /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
56 /// le contenu de cette méthode avec l'éditeur de code.
57 /// </summary>
58 private void InitializeComponent()
60 this.Button.Click += new System.EventHandler(this.Button_Click);
61 this.Load += new System.EventHandler(this.Page_Load);
64 #endregion