Back Button In Mozila Firefox 3.2 Disable?
May 31, 2010I have used lot of codinds to disable the browser (using server side code) back button in mozila firefox 3.2 it is not working.But it is working fine in the Internet Explorer.
View 1 RepliesI have used lot of codinds to disable the browser (using server side code) back button in mozila firefox 3.2 it is not working.But it is working fine in the Internet Explorer.
View 1 RepliesI am currently doing asp.net page, I want disable back & forward button all the times the page opening/loading.
View 4 RepliesMy customer has a website that is unsuitable for children. Anyone under 18 is not allowed ont he site. No, it's not a porn site, it's prison related. A certain page requires the user to enter their birthdate. If they are under 18, they're redirected to another site.
He has another site written for kids who have been impacted by crime. He wants the kids redirected here, to a page that explains why they were redirected. He asked me to disable the back button at this point to keep the kids from easily going back to the original site.
I've read all the reasons why you shouldn't desable the back button, but frankly, I think this would an appropriate place to do it. I also know you really can't disable it, but I've found a number of work arounds - none of which I've gotten to work.
Is there a work around that will work?
I've thought of setting a session variable or a hidden field or an invisible label on the page that redirects the kids just before the redirect and checking the value at page load, but the code to do the checking doesn't get run unless the user hits the back button then refreshes the page. Is there a way to get code to run as soon as the back button is pressed?
Possible Duplicate: Disabling Back button on the browser i want to disable browser back button without using javascript function forward().because it remain on this page.
I want to totally disable browser back button like banking sites
send me code for that i need it
I have a shopping basket on my site, and when the customer gets to the final page I don't won't them to be able to go back i.e. use the back button on the explorer. I have seen it before on other web sites, it's like when you leave the page it 'times out'I am just not sure how that works.
View 5 RepliesHow to disable back and refresh button. I want to know how this can be handled as in bank websites and other secured websites. Can this be handled using clearing cache in Response object?
View 8 RepliesI have developed some aspx pages using visual studio 2008. I am authenticating using Active Directory services. I have kept a link button on my aspx page which says signout .What exactly i want to do is that i want the back button of my login page to be disabled so that when i press signout and when my login page loads users cant go back and thus forced to enter the login details. I am using c# as development language.
View 7 RepliesI'm using 2 masterpages in my project.One master page is for login page and another one for the HomePage where user will go thro the options to reach other pages from home page..The thing is,i have "Logout" button in my home page.When i click on the logout button,the page will be redirected to "LoginPage.aspx". After redirecting to login page,when i click on browser back button,the previous page is displaying but it should not display to user since i'm doing sensitive transactions in all pages...
I tried using following code
Code:
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
but it's not working...
i want to protect pages from back button of the browser when my customer logout. so i use Response.AppendHeader ("Cache-Control", "no-store"); to clear the cache of my pages to make it checks session each time. however, i also find that if i use some controls with autopost back and this no-cache flag will also cause problem to make the error "webpage has expired" when my users click back button when they have not logged out.
View 12 Replieshow do i disable the back button in a website?
View 3 Replieswe have a web form with check boxes on.
When we click our back button the page only returns to the previous state (un checking the check boxes one by one after each click). We would like it to go back to the previous page and remember the history of the page.
I've tried :
[Code]....
but this just crashes the page.
our javascript button looks like this:
<input type="button" value="Back" onclick="history.go(-1)" />
(the browser back button does the same thing)
I'm using Jquery UI and Autocomplete func.(Combobox) and I interested in this part.
$("<button> </button>")
.attr("tabIndex", -1)
.attr("title", "Show All Items")
.insertAfter(input)
.button({
icons: {
primary: "ui-icon-triangle-1-s"
},
text: false
My problem is when I use ASP.net, this button do PostBack, but I not need this because my list of items then gone. How can I override this behavior of button.
i want to know how can i restrict any user to access any webpage after logging out
After user has logged out i am redirecting user to home.aspx and from here i do not want user to be able to go back using browser back button.. How can i do it? I used this code in javascript :
<script type="text/javascript"> javascript:window.history.forward(1);</script>
This does not work for me. In all pages i am using Master Pages..
I use following code to disable browser back button but it not work
<script type = "text/javascript" >
function preventBack(){window.history.forward();}
setTimeout("preventBack()", 0);
window.onunload=function(){null};
</script>
How can i disable it.
My problem is when I logout from my website, the logout button redirects to login page , and then if I click BACK button in browser, I can go back to my website. I do not want that.
What I am actually trying to make is like at mail.yahoo.com or at mail.google.com after sucessful logout user cannot view the account.
I would like to make the same functionality for my application.
I have orders page. When user submit Order, I need to disable the button to avoid multiple transactions. I also have few validation controls on the page, so button should not be disabled untill page is about to be posted. I dont have any custom javascript for validation. It is just these asp.net validation controls. What is the best way to achieve that? I have spend about 2 hours on google and found various solutions, but nothing seems to work. Each has some issue. On button I add OnClientClick="return btnOnClick this, 'Payment');" Below is what gets called. Unfortunately if I disable button, it cancels post back. So I am calling dopostback and also adding few lines on server side to see which button caused postback. It works fine in IE8 and Chrome. But for Firefox on server side arg comes null. Any ideas what is wrong with my code? Or any other suggestions to do it in a better way?
C# Server side
string arg = this.Request.Params.Get("__EVENTTARGET");
if (arg == "Payment") { this.ProcessPayment(); }
Button
<asp:Button ID="btnSubmitPO" OnClientClick="return btnOnClick(this, 'Payment');" runat="server" Text="Submit Order" ValidationGroup="G" />
alert(group);
I have read that you can not disable the back button on page load but I can clear the cashe on page load so the back button would then be greyed out. I have read a few articles on this and I am unable to get it working. I am using MS visual web developer 2010.
View 2 Replieshow to avoid viewing the last page visited by the user after logging out.
View 2 RepliesI'm using 2 masterpages in my project.One master page is for login page and another one for the HomePage where user will go thro the options to reach other pages from home page..The thing is,i have "Logout" button in my home page.When i click on the logout button,the page will be redirected to "LoginPage.aspx". After redirecting to login page,when i click on browser back button,the previous page is displaying but it should not display to user since i'm doing sensitive transactions in all pages...
or is there any way to do with authentication and roles?
How to disable the back button of a browser using Javascript.
View 1 RepliesI want know, If an error has occurred and website is redirected to the Custom Error Page and is also logged out. If back button of the Mozilla browser is pressed, previous logged in page is displayed. I have also used
1.
Response.Cache.SetCacheability(HttpCacheability.NoCache);
2.
Response.Cache.SetExpires(DateTime.Now);
in Page_init on Custom error page. Also set the values of .ASPXAUTH and other cookies to 1 but again page is not going to the Login Page. These cookies could also not be removed.
I am using Html.RenderAction<CartController>(c => c.Show()); on my master Page to display the cart for all pages. The problem is when I add an item to the cart and then hit the browser back button. It shows the old cart (from Cache) until I hit the refresh button or navigate to another page.
I've tried this and it works perfectly but it disables the Cache globally for the whole page an for all pages in my site (since this Action method is used on the master page). I need to enable cache for several other partial views (action methods) for performance reasons.
I wouldn't like to use client side script with AJAX to refresh the cart (and login view) on page load - but that's the only solution I can think of right now.
I want to disable the broswer back button without using javascript. So far i have used this coding:
Response.CacheControl = "no-cache"
Response.CacheControl = "private"
Response.CacheControl = "public"
It's working fine in the internet explorer 8 but in case of mozilla fire fox it is not working.pls say same the solution to work in all browsers.
disable working browser back button in code behind in c# or java script.
View 2 Replies