Last post Jul 06, 2007 06:59 AM by vr_chaithanya
Jun 27, 2007 07:44 AM|vr_chaithanya|LINK
I had a griview with some columns for example studentname, schoolname. There is a search button for sname and schoolname. when i searched for schoolname it had displayed all the values inside the grid for schoolname. I had a link for editing the schoolname
it has to redirect to another page. My problem is when i click the cancel button in editing page i.e., schoolname it has to redirect to previous searched results. That means it should not dispaly the entire grid it should only display the previous searched
result. It should maintain the viewstate can you tell me the coding how to do this. If you have not understood please let me know.
Asp.Net 2.0 session
GridView PostBack Page_Load
Asp.Net 2.0 and MS SQL Server 2005
Jun 27, 2007 09:40 AM|HostingASPNet|LINK
You should keep somehow the info for your previous requested page...by example if you use for your search URL parameters, you could do it like this:
CancelLink.NavigateUrl = Request.UrlReferrer.ToString();
Jun 27, 2007 12:04 PM|mshokoohian|LINK
I think u need to store search items in session and when u cancel and back to search page, do ur search by values of session.
In this way u can show last search result to ur user, when she back to search page from any other page.
Hope help u :-)
Jul 06, 2007 06:59 AM|vr_chaithanya|LINK