est-il possible d'accéder à l'événement CouncilIdLabel via l'événement DropDownList_SelectedIndexChanged ?!Accéder à une étiquette via un événement DropDownlist_selectedindexchanged, à la fois dans une Listview
<tr id="Tr10" runat="server">
<td width="110px">
دسته :
</td>
<td>
<asp:DropDownList ID="CategoryDropDownList" runat="server" Font-Names="tahoma" Font-Size="13px" onselectedindexchanged="CategoryDropDownList_SelectedIndexChanged" AutoPostBack="true" SelectedValue='<%# Eval("Category") %>'>
<asp:ListItem Text="عمومی" Value="عمومی"></asp:ListItem>
<asp:ListItem Text="پزشکی" Value="پزشکی"></asp:ListItem>
<asp:ListItem Text="مددکاری" Value="مددکاری"></asp:ListItem>
<asp:ListItem Text="روان شناسی" Value="روان شناسی"></asp:ListItem>
</asp:DropDownList>
<asp:Label ID="CouncilIdLabel" runat="server" Text='<%# Eval("CouncilId") %>' Visible="false" />
</td>
</tr>
il est situé dans un listview ItemTemplate
s'il vous plaît aidez-moi, je dois résoudre ce problème très bientôt
alors comment accéder à la propriété text ?! – Mahdi
Désolé, j'ai mis à jour le code un peu. – womp
i ont essayé et obtenir cette erreur – Mahdi