Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Castle.Igloo / Igloo.Clinic.Web / Views / Drug.aspx
blobdd662194e984365e8cce1ee4510aa5c579f5965a
1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Drug.aspx.cs" Inherits="Igloo.Clinic.Web.Views.Drug" %>\r
2 \r
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
4 \r
5 <html xmlns="http://www.w3.org/1999/xhtml" >\r
6 <head runat="server">\r
7     <title>Drugs</title>\r
8 </head>\r
9 <body>\r
10     <form id="form1" runat="server">\r
11     <div>\r
12     <asp:GridView ID="GridView1" Runat="server" DataSourceID="DataSourceControler" \r
13         AutoGenerateColumns="False"\r
14         AllowPaging="True" \r
15         AllowSorting="True"\r
16         datakeynames="Id">\r
17         <Columns>\r
18           <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" ShowInsertButton="True" />\r
19           <asp:boundfield datafield="Id" Visible="false" ReadOnly="true" headertext="Id"/>\r
20           <asp:BoundField HeaderText="Name" DataField="Name" SortExpression="Name" />\r
21           <asp:BoundField HeaderText="Description" DataField="Description" SortExpression="Description" />\r
22         </Columns>\r
23     </asp:GridView>\r
24       \r
25     <asp:ObjectDataSource ID="DataSourceControler"\r
26         Runat="server" \r
27         SelectMethod="GetDrugs"       \r
28         InsertMethod="Create" \r
29         UpdateMethod="Update" \r
30         DeleteMethod="Delete"\r
31         TypeName="Igloo.Clinic.Application.DrugController, Igloo.Clinic.Application" \r
32         OnObjectCreating="DataSourceControler_ObjectCreating">\r
33         <DeleteParameters>\r
34             <asp:Parameter Name="id" Type="Int64" />\r
35         </DeleteParameters>\r
36         <UpdateParameters>\r
37             <asp:Parameter Name="id" Type="Int64" />\r
38             <asp:Parameter Name="name" Type="String" />\r
39             <asp:Parameter Name="description" Type="String" />\r
40         </UpdateParameters>\r
41         <InsertParameters>\r
42             <asp:Parameter Name="id" Type="Int64" />\r
43             <asp:Parameter Name="name" Type="String" />\r
44             <asp:Parameter Name="description" Type="String" />\r
45         </InsertParameters>\r
46     </asp:ObjectDataSource>\r
47     <p />\r
48     <fieldset>\r
49     Name : <asp:TextBox ID="TextBoxNom" runat="server"></asp:TextBox>\r
50     <br />\r
51     Description : <asp:TextBox ID="TextBoxDescription" runat="server"></asp:TextBox>\r
52     <br />\r
53     bb\r
54         <asp:Button ID="ButtonAdd" runat="server" Text="Add" OnClick="ButtonAdd_Click" /></fieldset>\r
55     </div>\r
56     </form>\r
57 </body>\r
58 </html>\r