Solved

Send page back with a parameter then refresh

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

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 78

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now