I need a control event guru here.
I have a Dropdownlist to choose categories and a list of results from that category displayed on a page. By default the 1st category is selected and its results displayed. If you pick a diff. category the page posts back and the SelectedIndexChanged event handler gets new data and binds it to the repeater. Simple, no problems.
Here's the twist/problem: I also render links to page through the results within each category. The pager links have the id for the category and also the page, like:
If I click through pages, I'm showing the correct page of results...each time making sure to set the .SelectedValue of the Dropdownlist to the category being viewed so the user continues to see that one selected in the DDL. However, the next time I change the category in the dropdownlist, SelectedIndexChanged does NOT fire and it shows page one of the result set that was being paged through prior to changing the category in the dropdownlist. I'll spare you any code and hope theoretical advice will help, for starters. I'm guessing I'm doing something in the wrong event handler, but I've tried 50 things and none are working.
I have a Dropdownlist to choose categories and a list of results from that category displayed on a page. By default the 1st category is selected and its results displayed. If you pick a diff. category the page posts back and the SelectedIndexChanged event handler gets new data and binds it to the repeater. Simple, no problems.
Here's the twist/problem: I also render links to page through the results within each category. The pager links have the id for the category and also the page, like:
Code:
<a href="/default.aspx?id=3&page=1