My website is currently made up of HTML pages and residing on a Windows server.
Currently converting them all to ASP, that is going from .html extensions to .asp (besides adding funking asp functions)
My pages have all being indexed by Google, so wouldn't risk loosing good ranking with Javascript redirects, so I tought using this would solve the issue, for example, on a file named thatpage.html
<SCRIPT LANGUAGE="VBSCRIPT" runat="server"> Response.Status="301 Moved Permanently" Response.AddHeader "Location", "http://www.mywebsite.com/thatpage.asp"
</SCRIPT> Wherever where I insert it, in the head, in the body, before the DOC, it's not working, will have to resort to javascript? Will I have to put a link in the html page leading to the asp page? Wouldn't like to have user click agin to be led to the .asp version?
what I want to make actually is to take the results of a search engine that I use, which are in form of HTML or ASP and transport that results in a DataBase. For example, I wont to place as registrations in the DataBase the equivalents URLs and their descriptions from the results of search. I use MS Access, code asp, HTML , Javascript .
QUESTION! How can I insert the content from an HTML or ASP page into a dataBase? How can I determine from what point to what point a string it will be entered in the first cell of table and afterwards in the next and next ....
OK - I have a shopping basket with data in a database. Once the person has successfully completed their order I want to be able to send them an email with the products ordered roughly in the following format:
Product Price Quantity
prod1 £6.99 1 prod2 £5.99 2 Postage £0.50
Total whatever..I'm lazy
Formatting would be a little different (just spacing out the prod table a little more.
Any ideas or links to scripts that do this?. I've been looking for a while now but have had no luck in finding a solution. I just want to send a text email (and not html).
The other thing is that on the last page but one, this shopping basket is displayed. Is there anyway I could capture the html data from that page, store it in a session variable and then generate the email after the order has been completed (so sort of like sending a mirror of that page)? In that case having a HTML formatted email would be ok.
My client has various Access databases that they want to be able to access (using MS Access, not through ASP pages). I thought I'd be able to create the link from an HTML page but when I do that and click the link, the file is downloaded to the local temp folder. I want the database to open directly from the web server, and then changes must be saved.
I have a table having 3 columns. There is a checkbox for each line. I need to get those lines whose checkboxes are checked, and show those lines to another webpage. Is there any way to do that? My concern is that all information in the table are in <tb></tb> pairs without any name tag. Any idea?
I am not the ASP programmer on this project so I am simply asking for possiblities. We are using ASP to generate html documents with data drawn from a database. We need to email some of these pages to our users. We do not want to create separate email-able versions of all of these pages. It would be ideal to create an html email or attach and html document to an email, using the html code the asp code generates on the existing page. Can this be done? My programmers tell me that the second option (write the generated code to a file, attach it to an email, send it, delete the file) would need to use FSO and the this object opens security holes.
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is done?
I have a ASP Page[inline frame in an html page] that does login to a database.
When the user visits the site, the first attempt to login will always failed and session is broken. Login name and password are correct though.
Only when the user re-try agian he/sge is then able to login to the site successfully. Can anyone tell me what could had caused the first time login failure?
I am looking for script that redirects the user to another page if their IP address is in the database. I'm not sure how to deal with the extra quote marks in the server variable and I get "expected end of statement."
<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open(Server.Mappath("/STEM/Social/survey/survey.mdb")) set rs=Server.CreateObject("ADODB.recordset") sql="SELECT ipinput FROM soctable where " & " request.servervariable("remote_addr") = ipinput"
if rs.eof =false then close rs close conn Response.Redirect ("results.asp")
I have a login pages right now that prompts the user for login and password and redirect the authenticated user to a URL (see code sample below).
Now instead of this I would like it to pick a URL (different for each user) listed in my access database (URLredirect) and redirect them to their personalized homepage. How can I solve this problem? Can anyone guide me in the right direction? Code:
One of the features on my site is to allow my customers to upload photos and text files. The script does not come with any instructions to allow the page to redirect to a Thank You page. How can I accomplish this?
The second question is how can I email the images or the text to my email after the images have been uploaded to a specific folder on the server? Code:
From my asp page, I insert a row into a database. Once the row is inserted, its value for the 'status' column of the table is automatically entered as 'in progress'. This table is then updated by another script (out of my control). This script changes the 'status' value to 'processed' once it has copied the row to another table. The script runs every 5-30 seconds I've been told. What I want to do is give the user a 'processing data' kind of message until the value of the 'status' column has changed to 'processed', for the data the user has entered. I'm not sure how to poll the database every so often to check for the 'processed' string. Then, once it has changed to 'processed', just give a message to the user.
i've used flash to set up a menu on a website, but have since lost the work in progress flash file, and my menu points to the wrong link on one of the buttons.
is there a way through asp i can redirect to the *right* link when this button is pressed. (i.e. instead of going to default.htm it will go to index.php)?if there is it seems a lot easier than having to recreate my flash file
I am trying to deal with session. In sites that I see, when my session timesout, I am usually taken to another page right away or taken to another page when I click on a link or something.
Now, I managed to get the timeout part, but my page is not being redirected anywhere even when I click on a link. I tried using Response.Redirect("timeout.asp") in Session_onEnd, but I don't think it is working.
I am having an issue with Mac IE users that come to an asp page on my site. The page does a response.redirect to a PDF page. the PDF is downloaded onto the desktop and saved as the name of the ASP page. The PDF is then displayed in a separate window.
If I maunally type the URL to the PDF then everything works like it should. The PDF is displayed inside the browser window and the downloaded file is the correct name. I would appreciate any insight into . how to fix this.
i have a page that after pressing a link it goes to this page is only really used to perform calculatiosnn etc. and has one word like "you have been successful, you will now be redirected to"
at the moment it goes to fast and i have put a link on the pae so the person nows it worked and then needs to press the link to move on. is there away that i can put a delay into the html so that it displays the sentence for about 5 sec ect then redirects rater than have them press a link.
I have a web form page that passes values to an asp page, in which an email is sent to the customer with those values. The email functionality works fine. But I also want to display these values on a separate "thank you" web page after that.
What is the code to make those values display in the "thank you" web page? Does this involve adding code to the asp page and the "thank you" html page as well?
how to force users from a common asp page to the registration page. Example:
Joe blow goes to abc.asp and has a look around. He never registers because there is nothing saying he should register before browsing. I want to force joe blow to register before browsing some pages.
What would an If statement look like in that case? On what object do you perform the check?
I know how to use a redirect statement, I don't know how to perform a check for prior registration or login. I would imagine the check should be the first call of the page?
I am trying to do the similar to mod rewrite and use the custom 404 rewrite page to handle the table look up, so www.myweb.com/irish-tapestry-333.html will redirect to
www.myweb.com?id=333 for the detail pages. Will google see this forwarding in the 404 redirect page and ignore the links?Also, how can I make the URL of www.myweb.com/irish-tapestry-333.html appear in the users url window instead of the www.myweb.com?id=333
I've never used ASP before and I'm sure the answers are in here, so I'm expecting to have rotten tomatoes thrown at me... Sorry, this is the only ASP page I ever hope to write...
I have a page called intranet.asp All it needs to do is look at the remote_addr variable and depending on what it sees redirect to one of two places.
The logic is as follows, and if this were PHP or Cold Fusion, I would be able to do it.
IF (remote_addr == "192.168.xxx.xxx") { redirect to www.internal_address.com } else { redirect to www.external_address.com }
The xxx's in 192.168.xxx.xxx mean that it can be any address inside the 192.168 tree.
I have a few pages that require login to access. Assuming a user clicks a link containing a variable trying to access a password protected page. That user is redirected to the login page. After login, he's brought to a "logged in" page. How do I retain the original link he clicked and instead of redirecting to a logged in page, he's redirected to the page he originally requested?
I have a ASP page that triggers a db-side stored procedure.At the end of the procedure, it spits out a log file, that this ASP page reads and displays for the users.
But the problem is that the database-stored Proc could take anything between 10 secs - to - 10 mins. I dont want the page to time out [But I dont want to increase the time out in the IIS webserver]. Is there a way, like the airlines websites do, where I can just show an animated gif while the procedure runs and redirect the page to results at the end of the procedure run.
ex: like orbitz or hotwire.... or anything like that, but not as complicated as them.
Is it possible to redirect a user to another web page using ASP code located in page body?
I have some ASP code that runs after generating some output to the browser.It checks for a condition that can only be calculated using the values produced in the output, so redirecting the user before the <html> tag isn't possible without running the code twice.so RESPONSE.REDIRECT "url" won't work.
<% 'Check if user is logged in if Session("name") = "" then 'If not, go to login page Response.Redirect("login.asp") else 'If, build page Response.Write("<title>ASP Page</title>")
end if %><body leftmargin="100" text="#004080" bgcolor="#EBEBEB"><p><font size="6">
I want users that have been logged on successfully to be redirected to a website address that I specify.