Web Forms :: Webpage Expire When User Press Back Button Of Browser?
Feb 1, 2010I want when user press back button of browser.the web page should expire.
View 1 RepliesI want when user press back button of browser.the web page should expire.
View 1 RepliesI am trying to build a form that will not change the URL in the users browser, and will not allow the user to press the browser back button. Is there something I can do to accomplish this?
E.g. Form 1
Url: MyForm.aspx
Form 2
Url: MyForm.aspx (still the same url)
I am using Ajax authentication service to login/logout users.And have 2 boxes one for logged users,another for any user.When user logged in he get loged in box,then go to another page,then press back,i have unlogged box.In Page_Load i check if (Reques.IsAuthenticated) then i change box on corresponding,in this case on Logged in box.But Page_Load is not called when i press button back(in browser) or backspace.
View 1 Repliesafter user loggs out if he clicks the browsers back button then users had to be redirected to login page
doenst matter how many time the user clicks on back button take him to login page
how to achieve this let me know
if users press the browser's back button to reach the prior page..then page should display a message like "web page expired" in asp.net can i use javascript for this?
for example..
there are 4 pages in web sites. 1,2 and 3 can be back. but when the 4th page run then 4th page can not be back... when the user press browser's back button , diaplay ma message "weg page expired".
I want to expire a web page if the user hasn't worked with it for 100 seconds.
How to do that?
Whatever server Control we take on aspx page while in coding phase, all those controls are converted to html controls through the asp.net engine and sent to the requesting web browser. That's fine.
Now, all the controls that are rendered on the browser are html controls. I am bit confused that how after pressing any button (Or any such control that post back pages) page is posted back to the asp.net engine. How such html controls comes to know where (address) they have to go?
when press back button the previous page control value erased..but I want the control value should be visible.
View 4 RepliesIf I'm on a searchable site (example.com for example) and search some data then get a dropdown list, when I click on one of the items, then try to use the browser's back button to go back, I get the error "the page cannot be displayed". Does this have something to do with cookies or history settings?
I don't have this problem with mozilla, but I prefer to use IE for other reasons.
When I click Logout page redirect to Login page but when click to browser arrow back then it will goes back, I want to after Logout cannot going to back page...
View 1 RepliesI developed a web application in asp.net.I have a module for saving values to database after clicking the button event.Thats working successfully.After that when i clicked the browser's refresh button the values reinserted to the table each time.How can i avoid this .Which is the code for this solution?
View 1 RepliesI've created a Sign Out link on my page, just like the one you see on the top right hand corner of this forum.
This is the code i use :
<asp:HyperLink NavigateUrl="~/Login.aspx" ID="hypSignOut" runat="server" Text="Sign Out"></asp:HyperLink>
However, after signing out, I click the back button on my browser, I can still go back into the site. How do I prevent this?
[Code]....
View 8 RepliesI am creating a newsletter and I have got a problem. I have 2 text boxes. In one textbox the user types his name and in the second one the user enter his email address. When the user press the button if the email exists I want to show a message box him that the email address already exists. If the email does not exist I want to insert his email on the database and show a message that he has been inserted in the newsletter list. Just to let you know guys I am using C#
View 11 RepliesI have a user control with contact form and validators, when I add it (user control) to my parent page I get a strange behavior of all buttons within the parent page, Any button I press on the parent page fires the validators of the user control. How can I vallidate the form on my user control only when I press a specific button?
View 3 RepliesI have a page with lots of panels on it. Some of the panels are user controls and some are just on the page. I have a form on the page where you can add users and a gridview which is a user control showing a list of users.When a new user is added on the form I want to do gridview.databind() for the gridview in the user control. Does anyone know how to do this?
View 3 RepliesWhen i Clicked a logout button the page will be close but the browser back button go to previous page how to solve this....
View 1 RepliesIm using ASP.NET 2.0,C# for my web application development. I am having a login page and new user registration page. how to redirect to login page once user finishes his registration and clicks back button of browser. Registration page is container page using some master page..
View 7 RepliesHow to recognize if user has come through browser back button in asp. net site
AS well how to identify if they have opened new tab in the same browser.
Not sure if i'm posting in the right forum, if not, please move it...i have the following issue... I want to "disable" browser's back button. Seems it's not possible, but using cache.setcacheability and timing it, kinda disables the option of navigating back. I need this because in some pages of my webpage, i keep values in a Session variable so when a page loads, i need to check that variable, and, if navigating back, cant do that. I also "set cache to false" because if someone closes session, and i allow cache, someone else could handtype a url in that same pc and see the page without login (though if he/she tries to navigate through it will be kicked out because when loading a new page, i'll know that he/she is not logged) but i dont want to allow even that,
that's why cache is disabled. The problem is that loading over and over again my masterpage (header, footer, menu and stuff) is going to slow down the webpage, because every time there's a request, the page has to be sent again completely. So, is there something like a "mix" mode where i can allow cache just for a few things? If not, what's the best practice to achieve both things i'm trying: speed and security?
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.
When i use back button on browser, then I did not get session value.
How to store session on browser back button.
From pageA, clicking a button to open pageB which display a crystal report. User can only use browser back button. How to open pageC from pageB? Can I add code in pageB close (if there is a page close event) or make back button in browser to open pageC instead of pageA?
View 1 Replies