Conserver la valeur d'un TextBox lors d'un refreash de la page
Bonjour,
J'ai une interface dans laquelle se trouve 2 TextBox et 2 Button (BtnEndStat. Ces Button ouvrir en mode popup des Calendar afin de séléctionner une date. Malheureusement, dès qu'on clique sur un bouton (ex : BtnEndStat) les valeurs des TextBox sont perdues. J'aimerais conserver ces valeurs. Auriez-vous des pistes?
Je reste à votre dispo pour + d'infos
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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
<asp:textbox id="TxtBeginStat" runat="server" Width="112px" BackColor="Lavender" ReadOnly="True" autopostback="true"></asp:textbox>
<A onclick="javascript:window.open('calendar.aspx?call_form=id_Statistics&date='+TxtBeginStat.value+'&txt=TxtBeginStat','popupCalendar','width=275,height=275,left=110,top=200')"
href="#">
<asp:button
id="BtnBeginStat"
style="CURSOR: hand"
Width="63px"
BackColor="MintCream"
CausesValidation="False"
Text="Choisir" Runat="server">
</asp:button>
</A>
</td>
<td width="40%"><b>à
<asp:textbox
id="TxtEndStat"
runat="server"
Width="112px"
BackColor="Lavender"
ReadOnly="True"></asp:textbox></b>
<A onclick="javascript:window.open('calendar.aspx?call_form=id_Statistics&date='+TxtEndStat.value+'&txt=TxtEndStat','popupCalendar','width=275,height=275,left=110,top=200')"
href="#">
<asp:button
id="BtnEndStat"
style="CURSOR: hand"
Width="63px"
BackColor="MintCream"
CausesValidation="False"
Text="Choisir"
Runat="server"></asp:button></A></td>
</td>
<td width="20%">
<asp:Button
id="BtnDisplay"
runat="server"
Width="92px"
style="CURSOR: hand"
BackColor="#C0C0FF"
Text="Afficher"
Font-Bold="True"
ForeColor="White"></asp:Button></td> |