2014年7月13日 星期日

[RESOLVED] dropdownlist SelectedIndexChanged event fired, but again set to default value.


Within update panel i have detailView. In that detailview i have a dropdownlist. This ddl has OnSelectedIndexChanged. When we change the index, the event gets fire.


The problem is After page load when i select the another index, the event fired but again its assigned to default value on its first time itself. in further If i select another value in ddl, the functionality gets work. On first selection not working properly
and it reassigned to old one.


I checked with EnableViewState=true. I have used postback method to filter and avoid rebound while postback. Autopostback is true.  But its not work on its first selection. Hope u understand the problem statement.


If anybody know the solution direct me to resolve this problem.


Thanks in advance





can you please en-sure that you have set the property AutoPost="true" for the dropdownList and you do not re-bind data to your DetailsView.



Yes, Had set Autopostback true. The event gets call.


沒有留言:

張貼留言