c# - asp.net ListView SelectedIndex event -
i have listview , need perform actions based on onselectedindexchanged fine.
but getting error onselectedindexchanging undefined. have no need one. strange thing other day wasn't giving error while today does. need define though not using it? rather not since refresh of page if there no code behind (meaning have press select link on listview twice)
i getting " raised event itemdeleting wasn't handled." error when click on delete link not getting other day.
what can cause 2 issues above?
if bind listview datasource @ codebehind , have write code in selectedindexchanging event.
so code :
protected void listview1_selectedindexchanging(object sender, listviewselecteventargs e) { this.listview1.selectedindex = e.newselectedindex; //bind listview again here ! }
onselectedindexchanging="listview1_selectedindexchanging"> i hope solves problem.
Comments
Post a Comment