SqlDataReader and sorting
Posted on 2005-04-29
In my Page_Load, there is a SELECT which loads the SqlDataReader:
"SELECT * FROM DoneDeal, DealType WHERE DoneDeal.DealTypeID = DealType.ID ORDER BY DoneDeal.targetName"
So, I have to reload the page with parameters (from my JS function sortByCol) e.g.
abd then change my ORDER BY clause. How is this solution? But, how do I access 'sort' and 'ascending' values from the URL in Page_Load?