Retaining Control/Elements values changed via Client side on postbacks

dadoc

New Member
I am using Jquery AJAX in one of my applications with ASP.NET 4.0. Its a web application.I have used Server side coding + Client side coding aproach i.e. using Jquery, JS and AJAX.I have some controls which are wrapped in div element and I make them hide/show via client side index change event of dropdownlist.When a postback occurrs due to server side validation or by any other instance, the divs are retaining there old values which are their initial state. for example: the div is visible first time and I hide it via index change of dropdownlist at client, so when postback occurs Its visible again though it should be hidden.I have used hiddenfield to store the value and show/hide div according to the value via Hiddenfield in jquery document.ready event.Now, I wanted to ask that Is there any other approach of getting the desired result. I am expecting some standard approach to do that as nowadays almost all applications are client and AJAX enabled.
 
Back
Top