I'm creating a page that has a query interface:
search by: [dropdown: User, Order number, This value, That value, ...]
value: [ the value ]
From: [ start date ]
To: [ end date ]
[ Do Search Button ]
A query will populate a GridView which will have both Sorting and Paging.
Looking at the MM example "How To Add Paging to a GridView" I've got a clue, but not sure 1) how best to connect presentation layer (the query) to the business object (GetDatapage)
2) how to connect sorting events /or/ use ObjectDataSource.SortParameterName
3) how to use/not use ObjectDataSource.FilterParameters given the use of stored Procedure
4) how to add page/variable parameters the the query controls drive
I'm guessing just set up all the parameters in the page's ObjectDataSource1_Selecting() that the GridView uses.
protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
}
Any suggestions? Thanks!