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
|
<asp:SqlDataSource ID="dsEvents" runat="server" ConflictDetection="CompareAllValues"
ConnectionString="Ta chaine de connection"
DeleteCommand="DELETE FROM ACTIONS WHERE ID_ACTION = @original_ID_ACTION "
InsertCommand="INSERT INTO ACTIONS (CODE_ACTION, DESI_ACTION, VISE) VALUES (@CODE_ACTION, @DESI_ACTION, @VISE)"
OldValuesParameterFormatString="original_{0}" ProviderName="System.Data.SqlClient"
SelectCommand="SELECT ID_ACTION, CODE_ACTION, DESI_ACTION, VISE FROM ACTIONS ORDER BY CODE_ACTION"
UpdateCommand="UPDATE ACTIONS SET CODE_ACTION = @CODE_ACTION, DESI_ACTION = @DESI_ACTION, VISE= @VISE WHERE ID_ACTION = @original_ID_ACTION ">
<DeleteParameters>
<asp:Parameter Name="original_ID_ACTION" Type="Int32" />
<asp:Parameter Name="original_CODE_ACTION" Type="String" />
<asp:Parameter Name="original_DESI_ACTION" Type="String" />
<asp:Parameter Name="original_VISE" Type="Int16" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="CODE_ACTION" Type="String" />
<asp:Parameter Name="DESI_ACTION" Type="String" />
<asp:Parameter Name="VISE" Type="Int16" />
<asp:Parameter Name="original_ID_ACTION" Type="Int32" />
<asp:Parameter Name="original_CODE_ACTION" Type="String" />
<asp:Parameter Name="original_DESI_ACTION" Type="String" />
<asp:Parameter Name="original_VISE" Type="Int16" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="CODE_ACTION" Type="String" />
<asp:Parameter Name="DESI_ACTION" Type="String" />
<asp:Parameter Name="VISE" Type="Int16" />
</InsertParameters>
</asp:SqlDataSource> |
Partager