Sign in | Join
Last post 07-06-2007 2:59 AM by vr_chaithanya. 3 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi,
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.
With Regards,
Raj Chaithanya
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:
protected
{
CancelLink.NavigateUrl = Request.UrlReferrer.ToString();
}
Regards,
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 :-)