Solved

Send page back with a parameter then refresh

Posted on 2015-01-21
4
147 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 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