Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Send page back with a parameter then refresh

Posted on 2015-01-21
4
Medium Priority
?
157 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 84

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 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 84

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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

916 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