Solved

Send page back with a parameter then refresh

Posted on 2015-01-21
4
149 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
[X]
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
  • 2
  • 2
4 Comments
 
LVL 81

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 81

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 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