1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Drug.aspx.cs" Inherits="Igloo.Clinic.Web.Views.Drug" %>
\r
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
\r
5 <html xmlns="http://www.w3.org/1999/xhtml" >
\r
6 <head runat="server">
\r
10 <form id="form1" runat="server">
\r
12 <asp:GridView ID="GridView1" Runat="server" DataSourceID="DataSourceControler"
\r
13 AutoGenerateColumns="False"
\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
25 <asp:ObjectDataSource ID="DataSourceControler"
\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
34 <asp:Parameter Name="id" Type="Int64" />
\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
42 <asp:Parameter Name="id" Type="Int64" />
\r
43 <asp:Parameter Name="name" Type="String" />
\r
44 <asp:Parameter Name="description" Type="String" />
\r
46 </asp:ObjectDataSource>
\r
49 Name : <asp:TextBox ID="TextBoxNom" runat="server"></asp:TextBox>
\r
51 Description : <asp:TextBox ID="TextBoxDescription" runat="server"></asp:TextBox>
\r
54 <asp:Button ID="ButtonAdd" runat="server" Text="Add" OnClick="ButtonAdd_Click" /></fieldset>
\r