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
   |     <asp:DataList id="DataList1" runat="server" width="980px" edititemstyle-wrap="true" itemstyle-wrap="true" 
           OnEditCommand="EditCommand"
           OnUpdateCommand="UpdateCommand"
           OnDeleteCommand="DeleteCommand"
           OnCancelCommand="CancelCommand">
				<itemtemplate>
					<table style="margin-left:10px;">
						<tr>
							<td style="font-weight:bold; width:180px; overflow: auto;"><%# DataBinder.Eval(Container.DataItem, "date") %></td>
							<td style="width:520px"><%# DataBinder.Eval(Container.DataItem, "Text") %></td>
							<td style="width:140px"><%# DataBinder.Eval(Container.DataItem, "Imag") %></td>
							<td style="width:140px"><%# DataBinder.Eval(Container.DataItem, "Link") %></td>
							<td style="width:0px"><asp:HiddenField id="InputIDD" Value='<%# DataBinder.Eval(Container.DataItem, "ID") %>' runat="server" /></td>
							<td style="width:161px"><asp:button id="Edition" runat="server" width="55px" text="Editer" commandname="edit"/>
								<asp:button id="Delete" runat="server" width="75px" text="Supprimer" commandname="delete"/>
						    </td>
						</tr>
					</table>
				</itemtemplate>
				<edititemtemplate>
					<table style="margin-left:10px;">
						<tr>
							<td style="WIDTH: 180px">
								<asp:textbox id="TBDate" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "date") %>' borderwidth="1px" bordercolor="Black" borderstyle="Solid" font-size="10pt" font-names="Tahoma" backcolor="LightGoldenrodYellow" width="112px" height="20px"></asp:textbox></td>
							<td style="WIDTH: 520px">
								<asp:textbox id="TBText" runat="server" TextMode="MultiLine" text='<%# DataBinder.Eval(Container.DataItem, "Text") %>' borderwidth="1px" bordercolor="Black" borderstyle="Solid" font-size="10pt" font-names="Tahoma" backcolor="LightGoldenrodYellow" width="347px" height="37px"></asp:textbox></td>
							<td style="WIDTH: 93px">
								<asp:textbox id="TBImag" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "Imag") %>' borderwidth="1px" bordercolor="Black" borderstyle="Solid" font-size="10pt" font-names="Tahoma" backcolor="LightGoldenrodYellow" width="108px" height="20px"></asp:textbox></td>
							<td style="WIDTH: 92px">
								<asp:textbox id="TBLink" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "Link") %>' borderwidth="1px" bordercolor="Black" borderstyle="Solid" font-size="10pt" font-names="Tahoma" backcolor="LightGoldenrodYellow" width="100px" height="20px"></asp:textbox></td>
							<td style="WIDTH: 0px" align="right"><asp:HiddenField id="InputIDU" Value='<%# DataBinder.Eval(Container.DataItem, "ID") %>' runat="server" />
							</td>
							<td style="width:199px"><asp:button id="Update" runat="server" width="75px" text="Mis à jour" commandname="update"></asp:button>
								<asp:button id="Cancel" runat="server" width="55px" text="Annuler" commandname="cancel"></asp:button></td>
						</tr>
					</table>
				</edititemtemplate>
        <EditItemStyle Wrap="True" />
        <ItemStyle Wrap="True" Font-Names="Tahoma" Font-Size="10px" ForeColor="Purple" />
    </asp:DataList> | 
Partager