Issue with browser back button

N

Nyoti

Hi,
I am creating a search utility for my ASP.NET web application. There is a
page Search.aspx, which accepts the search criteria and sends the search
request to web service, which does the processing of that request and sends
back the reply as a dataset.
The search page then binds the dataset to the datagrid and is displayed on
the page. When I navigate through various pages of datagrid, I can see the
results on the same page (Search.aspx)as paging is applied on the grid. But
when I click on browser back button, I want the page load event to be
executed, which is not being executed. I tried with following code in
Page_Load event of Search.aspx
Response.CacheControl = "no-cache"
Response.AddHeader("pragma", "no-cahe")
Response.Expires = -1
But page load event does not occur. Please let me know the solution for this
issue. Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top