Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Castle.Igloo / Igloo.Clinic.Web / Views / Drug.aspx.cs
blob1de7bdcdf00bd920aaf50bc821c3c19d55f81662
1 using System;
2 using System.Web.UI.WebControls;
3 using Castle.Igloo.UI.Web;
4 using Igloo.Clinic.Application;
6 namespace Igloo.Clinic.Web.Views
8 public partial class Drug : Page
10 private DrugController _drugController =null;
12 public DrugController DrugController
14 set { _drugController = value; }
17 protected void Page_Load(object sender, EventArgs e)
22 protected void DataSourceControler_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
24 e.ObjectInstance = _drugController;
27 protected void ButtonAdd_Click(object sender, EventArgs e)
29 _drugController.Create(TextBoxNom.Text, TextBoxDescription.Text);
30 GridView1.DataBind();