In an ASP.net application I would dearly love to
disable or intercept the User's click on the browser's
Back and Forward buttons so that the application can
control page navigation.
I suspect this only makes sense Clientside - perhaps
each aspx page could destroy history?
Has anyone any suggestions?
I have a fullscreen page which needs to incorporate a forward, back, and close button. I have this working fine but after a review, people suggested that the foward and back buttons not be active if they do nothing.
In other words they want them to function exactly like a standard browser's forward and back button. When you open a page in a new window, the back button is grayed out until you move to another page. The forward button is grayed out until you move back a page.
Can this be done?I need to place a grayed out image if there is no back history or forward history. Otherwise, I need an active image with the back and foward action.
How do I force the page to refresh when the user hits the back button on the browser? I have an 'add' record form and I have inserted code so that it will not duplicate if the user submits the form several times.
however I just discovered that if the user goes forward then back and submits again it will create a new record. I want it to display the 'page expired' message.
I have never done the ASP programming yet but I want to hear the logic of the programming and see the sample code so I can have a better idea of how it work...
I have noticed that on one of hte ASP website, it was able to detect whether I did the back/forward button and blocked it.
I have a website in IIS which queries an archive. At a certain point I need to intercept a URL and redirect the user to another page. The only problem is that because the website uses an executable then I cannot code this redirection in a html page.
It would need to be something like this:
If URL beginswith ("(URL address blocked: See forum rules)=VIEW") then redirect ("(URL address blocked: See forum rules)")
Has anybody got any idea if this can be done via the global.asa file.
The global.asa file would need to be fired when opening each URL not just when a new session is started.
I want to intercept the submit event for field validation to cancel this action if validation failes. I tried to script using the submit method and also use the FireEvent("OnSubmit") method but neither option submited the form. Is there another way to do this?
I am trying to write an ASP page that would forward an XML request to a remote server, and then write the response to the client (a kind of proxy, if you like).
I am sending the query to this ASP via a VBA (access2k) procedure, which basically looks like :
Dim oXMLHTTP As New MSXML2.XMLHTTP40 Const strURL As String = "http://myserver/myasppage.asp" Dim strResponse As String
I want to move to next data in the data set, however i am not sure what is the syntax. Can anyone who know please advise me?Code:
strsql = "select main_cat_id, cat_name from main_categories where main_cat_id in (26,27,28,29)" set rs = connectdb(strsql,strconn) for i=0 to rs.recordcount response.write rs("main_cat_id")&"<BR>" rs next next
I have a form that submits values to an asp page. If their is an error on the asp page that is called and you go back to the first page with the form. The values are not in the form.
How can I set the value back into form without the user having to retype them in? If I use hidden fields on the first asp page and I go back to that page wouldn't the values for the hidden fields be empty as well?
I run an internet radio station and we use a program which comes with a PHP template but we use ASP and I do not feel like learning a brand new language tonight. Basically the program runs off of a DB on my local machine and it can accept requests and dedication through the website which are submitted with the help of XML.
In the PHP template it looks as if PHP generates an XML code and then sends it to my local machine and the program. The program then processes the request and sends back a completely different XML page with the results.
Kind of like a basic HTML Form. Anyways, what I am having trouble with is generating the XML code with ASP which I accomplished with the help of W3Schools but now when the script comes back from the program all I see is the XML. What I should, rather want to see/do is have the ASP read the XML just like PHP did and then display the end result to the user.
I've got a form which people will fill out on the web with information such as there name, email address etc.
Ive got it to email through to me but any ideas how i can also get it to email a message back to them based on the email address they place in the email field?
i keep getting locked up, ctrl/alt/delete and a window opens up and say's web back agent not responding. is there a way to overcome this problem. it happens no matter what program i'm working with.
i have created 2 .asp pages which, 1. Index page 2. Adding asp function
User will start to add contents in index.asp, then clicked on the "Add" button. the form will post to addContent.asp to add the contents to the database, then prompt the user for Adding contents complete and lastly display the added content to the Index page.
However, when i clicked on the "back" Button at the IE Standard Bar, it display the addContent.asp page and prompt user for the last msg -> "Adding contents Successfully". how can i redirect the page to the previous page before the adding page when the user clicked on the "Back" button at the IE Bar?
I'm trying to make a logout link to where once someone logs out, not only will they be sent to another page, but they will not be able to go back into their account by pressing the back button, but by logging back in.
I always heard people saying IIS ASP front end, and MS-SQL back end. ASP is for server side programming and dynamic content generation, how could it is called front end? Because I thought it is executed in the server, which is back end? I think I am confused with the term front end and back end here.
I'm creating a logout page(logout.asp), in which I'm using Session.abandon. Once the user logs out, I don't want the user to be able to access the previously visited pages using the Back button.
I have a form that contains many fields for the user to enter. After entering the data the user can click a link to open a new window, the new window contains six columns (pull down menu) and 30 rows to allow user choose their options. Code:
I am devloping a site with a log in function and it works fine, but what I want to make sure that when the user logs out, he/she can not use the back butten and then automatically enter the protected site again, and this is where I am at the moment.
I have tried several no-cache solutions, but they don't work as intended. Users should still be able to go back and forth between pages within the restricted area, and this does not work with no-cache, at least I am not able to make it work.
How do I make sure that using the back button will produce either a expired warning page, or redirect the user to the log in page?
How would this code look? and what page should the code be in?
Is it possible to create back end application (in any language) i.e. continueously tracks when user access particular URL (for example url contains one form and user is filling form) and whats he typing in the form.
Ofcourse, application would be installed on user machine.Please keep in mind that we don't have any control on website like its hosted by somewhere.
when the user logout they can get access the pages by click the icon back at the explorer.how i can avoid it? anyone know what method i should do.when i use session i'll use session.abandon.n what should i do when i not use session.
I created a simple website with one page. This simple page has only one text box (asp:Textbox) and no other controls. When i bring the siteup in VS2005 and press enter with the cursor inside the text box the page refreshes. I am not able to understand why it is posting back? I have set Autopostback to false. Am i missing anything or is it the default behavior?
I am trying to implement a javascript back button on my page. I had everything working on my test server, however, whenever I migrated over to the secure server, it throws an error saying that the page cannot be displayed. I am using javascript.back
I have searched these forums, and couldnt find anything to help me, so I figured I would post to see if anyone may know of a solution.
After updating a record, I want to go back to the results page from a search. Anyone know how to redirect after you update a record to go back a page to see the results again. A simple click of the back button would do the trick, but that can't be done after you click the update.
I'm trying to prevent a user to go back once on a particular page...i mean once the user reaches a particular page and he/she tries to click on the back button of the browser, the page does not go back. Is that possible please?
I've created a asp form that the user submits, the information is wriiten to a database and the user is redirected to a thankyou page
The problem is, if the user presses their browsers back button the form the just submitted is still filled and allows them to resubmit the form.
How can I clear the form session once the user clicks the submit button? I've read about this before, but can't seem to find the darn webpage that explains this.
Basically I have something that needs to be installed in the htdocs in order for me to use it - however i need to be able to access something thats in the private dir on the same dir.
Dirs go like /whateverftp/ /whateverftp/private/ /whateverftp/htdocs/
obv Const DB_FOLDER_PATH = "/whateverftp/private/" wouldn't work, what would I put in there in order to gain access to the private dir?