Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Send page back with a parameter then refresh

Posted on 2015-01-21
4
145 Views
Last Modified: 2015-01-22
I have a grid view with check box column as templated field, user search for an item then press a button to fill the grid then the user can check multiple rows then press a button to go to the next page to process the selection, the problem is when the user would like to change the checked box buy going back to the grid, if i redirect the page that means the user will have to search and re check all the boxes again, but if the user presses back button on the browser then then all the checked boxes are there then by refreshing the page the user can just uncheck the unwanted check box and check another one then re submit, the question is how can i use the back button from and refresh the page by code C#
0
Comment
Question by:UKIT
  • 2
  • 2
4 Comments
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 40563807
you can't since the back button is something that works outside of the webpage.. nothing is sent to the browser when you hit the back button that you can intercept in your website.

The browser uses the information that it has stored locally.. all you can detect is whether or not the user leaves the page and all you can do is either cancel the action or continue the action
0
 

Author Comment

by:UKIT
ID: 40563861
Thank you David,
since I cannot do that then I will need to save all my params in sessions but I am struggling to call  this methode
protected void SelectedRecords(object sender, GridViewRowEventArgs e)
        {}
from a button on the page or from another event ?
I would appreciate any ideas as that would solve my problem.
0
 

Author Closing Comment

by:UKIT
ID: 40563876
I do admire the professionalism and the swift help I am getting fro the experts here.
0
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 40564020
you can add a back button on the page that will work but if the user uses the browsers back it won't work.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question