Reputation: 1169
i have a listbox in my asp page, when user clicks any of items, the page is redirected to other page. To do that i used the SelectedIndexChanged event, but it wasnt firing, so i change the autopostback property of listbox to true. Everything is forking fine now, except when i click back button in browser, it redirects to the first page, and than back to last one, because of the selected index of a listbox. Any suggestions? Thanks, Oak
Upvotes: 0
Views: 2602
Reputation: 331
You should verify IsPostBack
property of your page. If !IsPostBack
do your work.
Upvotes: 1