1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Enregister_psy.aspx.cs" Inherits="Enregister_psy" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
<asp:SqlDataSource ID="Insert_user" runat="server"
ConnectionString="<%$ ConnectionStrings:masterConnectionString2 %>"
InsertCommand="insert into [psychologue](nom_psy,prenom_psy,code_psy,cin_psy)
VALUES (@nom_psy,@prenom_psy,@code_psy,@cin_psy)">
<InsertParameters>
<asp:Parameter Name="nom_psy" Type="String" />
<asp:Parameter Name="prenom_psy" Type="String" />
<asp:Parameter Name="code_psy" Type="String" />
<asp:Parameter Name="cin_psy" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
<div><h1> Ajouter un Psychologue</h1></div>
<div align="center">
<asp:FormView ID="FormView1" runat="server" DataKeyNames="Id_user" DataSourceID="Insert_user"
DefaultMode="Insert" OnItemInserted="ValiderInsertion">
<InsertItemTemplate>
<table>
<tr>
<td><asp:Label ID="Label3" runat="server"> Nom :</asp:Label></td>
<td> <asp:TextBox ID="nom_psy" runat="server" Text='<%# Bind("nom_psy") %>'></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="Label4" runat="server"> Prénom :</asp:Label></td>
<td> <asp:TextBox ID="prenom_psy" runat="server" Text='<%# Bind("prenom_psy") %>'></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="Label1" runat="server"> CIN :</asp:Label></td>
<td> <asp:TextBox ID="cin_psy" runat="server" Text='<%# Bind("cin_psy") %>'></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="Label2" runat="server"> Code :</asp:Label></td>
<td> <asp:TextBox ID="code_psy" runat="server" Text='<%# Bind("code_psy") %>'></asp:TextBox></td>
</tr>
<tr >
<td height="20px" colspan="4" >
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
Text="Inserer">
</asp:LinkButton> |
<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
Text="Annuler"></asp:LinkButton>
</td>
</tr>
</table>
</InsertItemTemplate>
</asp:FormView>
</div>
</asp:Content> |
Partager