AutoPostBack in Asp.net
Posted on 2011-05-05
My question is related to post back event on asp.net page.
I have several controls on a single web page like listbox, gridview and dropdownlists, aspbuttons.
My question is, whenver I make changes to any of the controls (on the client side - through browser), eg, if I select an item from the dropdownlist, the page is shown as blank i.e., it clears all the other entries in gridview and listbox as well.
To solve this problem, I need to call all the functions (to fill in the data in those controls again) everytime I take some action with a single control on the page (ie., post back).
Is there any way to prevent this from happening? For eg, can I put all those controls in seperate sections so that when any action is taken related to a particular control, it refreshes data in that particular control only and the state of all other controls on the page remains the same.