I have a ASP.NET ListView control on a page and it is bound to an XMLDataSource. When i change the data in the DataSource, the onItemDataBound event of the ListView is called, and the ListViewItemEventArgs object contains the items that were bound to the listview the very first time.
I am unable to refresh the content of the listview. This persists even after I leave the page and come back later. Considering its a fresh page_Load, i can't understand why the ListView still contains old data.
The scenario is: The xml contains items of 2 different types. On clicking Type1, the browser navigates to the listview, the items of type 1 are bound to the XmlDataSource and the ListView is loaded.
Same for type2, but the listview will only show the data that was bound the first time.
Please help me out.