I just came accross this vierd situation, and thought I'll ask you why it's happening.Not sure if it is a bug of some kind Well It's about the Accordion again. 1. I am providing the user to choose between Accordion View and Full View( no Accordion). To achieve this i have two listviews visible property toggled. 2. I have a button which displays their choice of view. 3. I have a textbox for Quantity which the user can key in. If the user changes his view to fullview, I need to retain what he keyed in. It works just fine the first couple times, but on the fourth click the data disappears. Please could you tell me how I could avoid the loss of data between clicks. Please try and get back with me ASAP.
protected void Button3_Click1(object sender, EventArgs e) { if(A) DataTable table = CopyDataTableValues from 1ListView to 2ListView else CopyDataTable Values from 2ListView to 1ListView
}
Thank you,
|
| Author: venkatesan 03 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
By default the textbox doesnt lost his value - as his enableViewState is set to TRUE.
check the Enableviewstate of the control
if this happens use ViewState to hold the textbox value across postback.
Regards, M.Venkatesan. Dot Net Code Snippets
|
| Author: urpalshu 05 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
My AJAXToolkit needed an updated version. It worked great after the update.
Thanks
|