DataGrid Sort and Context.Handler
Posted on 2004-11-24
Ok, let's see if I can explain this...
I have two pages, Search.aspx and SearchResults.aspx. Once the user selects the criteria on Search.aspx (about a dozen parameters), the user clicks a button which calls a server.transfer to SearchResults.aspx
SerchResults.aspx then uses the Context.Handler to retrieve the selected parameters as properties from Search.aspx to build a grid with the results. Everything has been working fine so far.
Now the customer wants to sort the columns. The problem is, when the server.transfer is called, and loads SearchResults.aspx, the URL says we're still on Search.aspx. This, I think, is causing the sort to get confused and the procedure I've specified in OnSortCommand="" never gets called.
Has anyone experienced this before? How did you solve it?