Main page has a gridview with options to filter / search etc…
when a user selects a row a NEW page comes up (response.redirect) and i can edit/insert/delete there…
I want the user to be able to go back to the page he came (easy) BUT i want the grid to have the filters as they where on the time of the first redirect.
anything ready in .net or i have to use lets say querystring back and forth to do it?
Avoid using
Response.RedirectInstead of using
Response.Redirect, useServer.Transferwhere ever you can.Response.Redirectsends response to the client which then sends a new request to the server.Server.Transferhowever performs the redirect on the server. Only useResponse.Redirectwhen you want authentication and authorization to be performed on redirects or you want URL on client browser to be changed becauseServer.Transferwill not do this as it is a server side transfer.This way you’ll be able to preserve the prvious page folrms collections..
look here:
http://www.codeproject.com/Tips/74472/ViewState-and-Server-Transfer-Best-practices
and also “Passing Server Control Values Between Pages” :
http://msdn.microsoft.com/en-us/library/6c3yckfw(vs.71).aspx