Modification d'une textbox en ASP.NET coté client
Dans une fenêtre modale j'ai une textbox dont je voudrais modifier le texte coté client, lorsque je click sur le bouton "IB_annulerRubrique" fonction OnClientClick="Annuler_Rubrique"
Merci de votre aide
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<asp:Panel ID="ModalPanelRubrique" runat="server" Width="800px" BorderStyle="Groove" BackColor="White" >
<table>
<tr><td><asp:Label ID="LblRubrique" runat="server" Text="Renseigner la nouvelle Rubrique :"></asp:Label></td></tr>
<tr>
<td>
<asp:TextBox ID="TBpanelRubrique" runat="server" TextMode="MultiLine" Width="750px" Height="50px" BorderStyle="None" Font-Names="eurostile" BackColor="#CCCCCC"></asp:TextBox>
</td>
</tr>
</table>
<table>
<tr>
<td>
<asp:ImageButton ID="IB_panelenregistrerRubrique" runat="server" Height="12px" ImageUrl="~/Images/save.png" OnClick="Enregistrer_Rubrique" />
 
<asp:ImageButton ID="IB_annulerRubrique" runat="server" Height="12px" ImageUrl="~/Images/cancel.jpg" OnClientClick="Annuler_Rubrique"/>
 
<asp:ImageButton ID="IB_panelretourRubrique" runat="server" Height="12px" ImageUrl="~/Images/return.png" />
</td>
</tr>
</table>
</asp:Panel>
<asp:ModalPopupExtender ID="MPE_ModifierRubrique" runat="server" TargetControlID="LinkButtonAjouterRubrique" PopupControlID="ModalPanelRubrique" OkControlID="IB_panelretourRubrique" >
</asp:ModalPopupExtender> |