Thursday, January 17, 2008

dropdownlist postback problem ASP.NET

have you encounter that ASP.NET dropdownlist control have a problem of persistent the data in the items list after you had make a postback? The problem is actually you have disabled the EnableViewState. Therefore the control will not persist any data after an postback. To enable it back, just - EnableViewState="true".

This is a super tips, because you might disabled it, in this case turn it on!