Search code examples
asp.netvb.netdrop-down-menuselectedindex

vb.net dropdownlist looses it's datasource on pageload or postback


I have a problem with dropdownlist when a button is pressed the bounded data will disappear!
I have absolutely no idea why this is like this!
I have other page that has a bound dropdownlist data as well and it works great but this one get disappear bounded content on page load after pressing the button!
As requested here's my full .vb code
As My files are huge I'm giving you the full link to these files
http://www.mediafire.com/view/8v5e5yjkdpg5780/admin_report.aspx.vb
http://www.mediafire.com/view/xlgt7c2v523rsti/admin_report.aspx

thanks in advance


Solution

  • why you set EnableViewState="False" on P tag ? try with removing EnableViewState="False" from P tag.