calinberindea Posted August 27, 2003 Posted August 27, 2003 Hello I understand from the new concept of asp.net pages (like windows forms), that the webform is posting back its data. But I'm in a situation that requires some old fashion work: I use pagination to iterate some items from the database. I allow users to filter these items and to make some sorting. Now I want to allow users to view these items one by one on a webform, but I want to keep the filtering and the sort criteria. For this I would submit the where clause and the order by clause to the form. Now I can't do this in .NET, cause I can't submit a webform to another file. Does anybody know any solution? Thanks in advance. Quote
*Gurus* Derek Stone Posted August 27, 2003 *Gurus* Posted August 27, 2003 You don't have to submit it to "another file". Simply post the page back to itself. ASP.NET view state should keep the filtering and sorting for you. Quote Posting Guidelines
calinberindea Posted August 28, 2003 Author Posted August 28, 2003 The first file is paging page that uses datagrid to view the items and the second file would be a webform with all data of only one item, so I can't use the same file. Quote
*Gurus* Derek Stone Posted August 28, 2003 *Gurus* Posted August 28, 2003 So you're going from a list view to a detailed view. I think I'm following you now. What you'd need to do is store the view state of the list page in the user's session, a cookie, or by passing the various options to the detailed view via a form post or the query string. Quote Posting Guidelines
calinberindea Posted August 29, 2003 Author Posted August 29, 2003 I know I have to pass the data and I know how to now. Check this out: Transferring the Datagrid Data Between Web Forms It's a very good article. Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.