[ASP.NET 2.0] Comment accéder aux Contrôls contenus ds un EmptyDataTemplate
ci-dessous l'EmptyDataTemplate de mon Gridview :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <EmptyDataTemplate>
To create a new address fill the texbox below and click to the "Add" button.<br />
<br />
<table>
<tr>
<td><asp:TextBox ID="txbAddressName" runat="server" Text="Address Name" Width="140px" ToolTip="Address Name" onClick="clearField(this.id,'onClick')" onBlur="clearField(this.id,'onBlur')"/></td>
<td> : </td>
<td><asp:TextBox ID="txbStreet" runat="server" Text="Street" Width="150px" ToolTip="Street" /></td>
<td><asp:TextBox ID="txbZipCode" runat="server" Text="ZipCode" Width="60px" ToolTip="ZipCode"/></td>
<td><asp:TextBox ID="txbCity" runat="server" Text="City" Width="80px" ToolTip="City"/></td>
<td><asp:TextBox ID="txbState" runat="server" Text="State" width="100px" ToolTip="State"/></td>
<td><asp:TextBox ID="txbCountry" runat="server" Text="Country" Width="80px" ToolTip="Country"/></td>
<td><asp:CheckBox ID="ckbIsAvailable" runat="server" Checked="true" ToolTip="Is Available Now ?"/></td>
</tr>
</table>
<asp:Button ID="btnAdd" runat="server" Text="Add" CommandName="EmptyAdd" CausesValidation="false" />
</EmptyDataTemplate> |
Comment accéder à la propriété Text du control txbAddressName ?
merci pour votre aide,
Stéphane