| Author: D.Jeya kumar(JK) 20 Aug 2008 | Member Level: Diamond | Rating: Points: 1 |
Hi,
Did your text box viewstate property is enabled?if not please do it.
regards JK
|
| Author: Jessica 20 Aug 2008 | Member Level: Gold | Rating: Points: 2 |
Hi,
other solution is... on the starting of the postback save the textbox value in the hidden fields and after postback re-assign then to original textbox.
Regards.
|
| Author: jeeva 20 Aug 2008 | Member Level: Silver | Rating: Points: 3 |
hai
If you have no problem to to change the design means
please
Create a new button near by the dropdownlist and write the code in the button, instead of the dropdownlist code
|
| Author: Jessica 20 Aug 2008 | Member Level: Gold | Rating: Points: 6 |
Hi
When you postback the page on selectedindexchange of the dropdownlist
CODE BEHIND
protected void btn_list_SelectedIndexChanged(object sender, EventArgs e) { hiddenValue1.Value = txt_msg.Text; hiddenValue2.Value = txt_word.Text;
//do the selectedindex operation here
txt_msg.Text = hiddenValue1.Value; txt_word.Text = hiddenValue2.Value; }
HTML
<asp:TextBox ID="txt_msg" runat="server"></asp:TextBox> <asp:TextBox ID="txt_word" runat="server"></asp:TextBox> <asp:DropDownList ID="btn_list" runat="server" OnSelectedIndexChanged="btn_list_SelectedIndexChanged"></asp:DropDownList> <input id="hiddenValue1" runat="server" type="hidden"/> <input id="hiddenValue2" runat="server" type="hidden" />
Regards.
|