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.
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?
If 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.
I 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?
I 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#
I 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?
I 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?
Im 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..
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?
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?
How should i handle browser Back and Forward button? I have aspx page . in aspx page has some field with Save Button. i have clicked on save button to save the data, then i clicked on browser back button, then it again execute the save button event. how should i prevent to fire save button event again when user clicked on Browser back button?