I have no idea if this is actually possible in plain asp but any help might
be welcome :
After a user has downloaded some content/file from my webserver (http_status
=200) I would like to redirect him to a file -lets say- "ThankYou.htm"
So basically sth like this
If Response.Status ="200 OK" then
Response.Redirect "ThankYou.htm"
Else
Response.Redirect "GetLost.htm"
End If
The question is : how would i implement this ONLY for the document to be downloaded ? The document to be downloaded is part of a collection from a DB query - so it is know to me as sFileName = rsPDF_ID("PDF_File")
I need to implement an application that receives http calls from a remote client, do something with it and returns some feedback. I want to use IIS (version 6) as my front end http server (with https and ssl services) which will facilitate all the requirements of a http server and then foreword the incoming call to my application and will return the process result to the client at the end.
Does IIS support this? And if yes - what are the requirement from my application to use it (built in .net if anyone interested)?
I need to redirect to another web page, but that redirect will include the submission of form data. So, unlike ServerXMLHTTP which stays on the originating web page, I need the script to redirect to the page that I'm submitting the POST data to (without pressing a submit button).
I got the code off of a website and found that many web sites had similar code for doing the same thing. The problem I am having is that the code will not redirect to the HTTPS and will keep reloading the page. Is there a setup issue with IIS that I might be missing?
I used a Response.Redirect "page.asp" as the last command in ASP code that processes a submitted form from an Adobe PDF form (using HTML format). For some reason, if there is any linked file (image, stylesheet, javascript) in the target "page.asp" IE hangs until you press Escape. With Refresh, the page loads completely.
I checked the web log and the entry for "page.asp" is 200 (OK) but all the files I mentioned above all show 400. The description for this status code is pretty generic and not much help (a syntax error in the request and the server doesn't understand it
I can't control the syntax of the request so how can this be fixed? (and how could the submit from the PDF form have anything to do with this since other HTML forms directed to an ASP page with images etc. works fine.
I am able to get the value for "request.ServerVariables("http_referer")". However, I try to use this value in a "response.redirect" and the value disappears. Why is this happening. Example: -------------------------------------------------------------------------
If Not Session("whatEver") = True Then Dim httpVar, EncodeHttpVar httpVar = Request.ServerVariables("HTTP_REFERER") EncodeHttpVar = Server.URLEncode(httpVar)
but I keep getting a "permission denied" error. If I just put the same address string in IE6's Address box and go to it, IE opens myusername's FTP home page just fine, so I know the FTP site is working as expected. Also, if I put in an anonymous ftp site, without the username and password (e.g. "ftp://ftp.microsoft.com"), the redirect works fine, too.
I don't want the user to be prompted by IE for the username and password at the FTP site, so I am providing them from within the web site.
What can be preventing the response.redirect from handling non-anonymous FTP access? Is there a better way to do this?
in ie 5 i m writing this below statement http://localhost/Mail/email.html
email.html page contains 3 field box username , password and name .it calls the form2email.asp page the code is that <FORM name="mailform" METHOD=POST ACTION="form2email.asp">
If someone puts a link into my form and I display it it will show:
http://http://www.abc.com as I put an additional http:// in front. So what I want is to detect is user has typed in http://, replace this and then input into DB or display.
I can use the replace function, but how would I check if first 7 characters are http:/
I uninstall IIS and install it back again, will it solve the "HTTP 403.9 - Access Forbidden: Too many users are connected Internet Information Services" problem? I am running on Windows XP and using IIS 5.1 . I got this problem when I created a search page in Frontpage but I have deleted it when I found out I have this problem. I have disable HTTP Keep Alives in the IIS properties but I still cant resolve the problem.
When i try to post message or try to open a new account server gives this error : How can solve this problem
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only. /Start/Forum/register_new_user.asp, line 193
I am getting the following error when trying to run an SQL insert in my ASP page and I cannot find anything in TechNet that references this error.
Below are IIS messages:
HTTP 500.100 - Internal Server Error - ASP error Internet Information Services Error Type: Microsoft OLE DB Provider for SQL Server (0x80040E14) Issue selected is no longer valid. Please select another issue. /ActivityTrak/maintain/activityedit.asp, line 542
It seems to me that if I can have a regular .asp page that contains multiple <input type='file'> elements, and a user could browse to individual files and fill up all the elements on the page, that there should be a way to replicate the HTTP post data. Can I somehow make my client-side activeX component post the same type of data?
I tried using MS Stress Tool to view the post data being sent from a regular.asp page that contained several <input type='file'> elements.I saw that there was a structure to it. The structure contained the binary data of the files I had selected for upload. But, I have not been able to figure out how I would replicate this structure in my client-side activeX component
I have certain ASP pages that are wel tested and working in many places. But there is one server (window 2000) on which some of the asp pages do not work. I get a HTTP 404 fil not found error. I checked more than a few times and made sure the file are there on the server where the IIS application is looking at.
some of the ASP pages are working fine. Only those ASP pages whose name starting with 'ETC' is not working. If I chang the name of the same ASP to some thing other than "ETC" it works fine. Do you think there is some software on the sever that tells IIS t block requests coming from any ASP pages starting with the name 'ETC'. what is going on?
I'm having problems with timeouts on HTTP uploads. I set the session timeout property to zero, but it still didn't work. Is there a way to set the timeout to never expire?
Window XP PRO, Access 2000, FR2002, FP2002 ext. I have 3 webs with database, two work fine, the other gives this error.
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
I had to reinstall Window and published all the web site from ISP were they work fine. They worked fine before the crash.
I have a form that a user submits their clan's website, and roster page. What I want to do, is check to see if the field submitted contained "http://" and if not, add it to the field submission.
I know i can make this easier, and put the http:// in the field as a default value, but i want to know how to do this with a bit of form validation or something.
I have free web-based email.Is there any way I can create an http server? For example, like hotmail does for outlook express? If so, how? Hotmails HTTP server is at http://services.msn.com/svcs/hotmail/httpmail.asp.
I am having a problem re-configuring the intranet server to connect ASP page with Oracle Database. I have a system DSN created with oracle. I am using the Microsoft ODBC for Oracle driver.
However, I am still getting the error below: HTTP 500.100 - Internal Server Error - ASP error Internet Information Services
Error Type: Microsoft VBScript runtime (0x800A01C2) Wrong number of arguments or invalid property assignment: 'OOS.GETINFO' /otis/common/memolist.inc, line 63
If I want to have a username/password dialog in my page, how can I add http header in ASP for username/password dialog? I want to hardcode the username/password in my page and check the authentication.
I get a http 500 error on all asp pages. When turning off the friendly message box, the message is "Class does not exist". What is the fix for that? This affect all asp pages incling the default asp pages in the default directory.
Why ASP's MS XML HTTP request object gets another page's HTML source without interpreting path differences. For example, if my page is:
www.test.asp/one/two/page1.asp
with XMLHTTP getting source code of page:
www.test.asp/one/page2.asp
and this latter page has a CSS with path ../include/css.css, it won't be used in page1.asp because path will stay as it is "../include/ css.css", not "../../include/css.css" as needed for page1.asp?
I created a form for users to sign up for a newsletter our site sends out. The thing is we use a third party that keeps a db of our subscribers and sends the email for us. The signup resides on our site and when the user submits they get poasted to this third party site and then click through and get refreshed to our site again.
We want change that process and keep the user on our site so now thier values need to get posted to the 3rd party behind the scenes. Code:
I'm trying to detect if the user is utilizing HTTP or HTTPS in the address bar. The following code responds true regardless of whether I use HTTP or HTTPS. What should I be using? In the end, if the user types in HTTP, I will redirect them to HTTPS.
<% If Request.Servervariables("https") <> "" Then Response.Write "this is https...OK!!!" End If %>
In our ASP page, we call XMLHttp to download XML files. When calling our page using localhost (localhost/myWebSite/myPage.htm), it works, but when calling using the IP address of the web server (xx.x.x.xxx/myWebSite/myPage.htm), I got "Permission denied" error in the HTTP.Open statement.
i want to info about iis caching and a special one when i get the a site with xml http it is caching by iis ... what is the refresh period and data amount of this caching...
could anyone give me a info or url to take more info...
Cold Fusion has this tag called <CFHTTP> which allows you to grab the contents of a web site and put it in a variable. It works well because we can grab our dynamically generated header and display it on our cold fusion sites.
We have a couple of ASP sites and we want to do the same thing for them. However I am not sure if ASP has the same exact type of tag. Does anyone know?