DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Help needed for search page

By: Admin | 10 Feb 2010 1:03 pm

Hi,

I have made a search page on the portal that i am working on in asp.net  All the profiles that are on the site are have audio & video files with  specific docket numbers. The problem that i am facing is with the search page where there the filteration criteria is running fine & displaying results as per the options that one chooses, but after checking a particular profile & then if we click the back button on the page it does not go the page where the search results are been displayed but it goes back to the basic search page. Kindly let me know the solution of the same at the earliest.

Best regards,

Comments

That's because you return to the page holds the search result, and this page doesn't support "save state"

Thanks.

By: Admin | 10 Feb 2010
Hi,
 
Another way of the solution for your problem is use session for back data.
 
firstpage.aspx
Whenever you click on submit after binding the grid vaules you just add to session variable.
ex: grid1.datasource= ds_sample. defaultview
      grid1.databind( )
      session("ds_back")=ds_sample
in the page load after Ispoatback check for back.
     if(requset.querystr ing("type")=="b"
     {
         grid1.datasource= session("ds_back")
         grid1.databind( )
     }
backpage.aspx
when you click on back button  use this "firstpage.aspx? type=b"

 

By: Admin | 10 Feb 2010

Hi,
 
there is another solution of it,
 
you just create a master page and your method is define on it you just show your mehtod on every page where do you want.
 
regards.

By: Admin | 10 Feb 2010

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move