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 have a password-protected area on my site. I'm not using any server authentication methods: Instead I prompt the user for a username and password using an HTML form and check these against a database of registered users.
I was thinking that this page should be returning a HTTP status code of "401 Unauthorized" instead of its current "200 OK". My reasoning being that this would let search engines know what's going on when they request a protected page and get redirected to the "Access Denied" page.
I experimented with adding response.status = "401 Unauthorized" to the "denied" page, but now it displays a (Windows/IE) username & password prompt instead. The HTTP sniffer shows that the www-authenticate field is set to "Basic".
My question: How can I indicate to the search engines that the page it is requesting requires authentication, yet have it not display the login/password dialog box?
I have a ASP code that will query a server 200. Nothing will be displayed on the browser during this time, which could last upto 5 minutes. Is there a way to inform the user of the status of my ASP code?
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 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)
strURL = "url that is required" strFileName = sXML
Set oOriginalPO = CreateObject("MSXML2.DOMDocument") Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP")
oOriginalPO.async = False oOriginalPO.load strFileName 'name of file containing cXML data
oXMLHTTP.open "POST", strURL, False 'strURL is our URL you post to oXMLHTTP.send oOriginalPO
So on the assumption that the sXML variable has correct information inside it to send out, can anybody see why perhaps this code isn't working properly?
Just to explain what's going on briefly... I've added an include to the top of all files on our site (this code is pasted below) to check IP address, and then some pages will display slightly different content for our Canadian or US customers.
This works fine in Firefox. However, in IE, when a Canadian visitor comes it doesn't display canadian content on the http version of any page. Once they go to a https page, it works just fine. After that, if they go back to an http page it still displays properly. Code:
I am trying to SEO a website which gets content from a CMS, and is coded using ASP, running under shared IIS hosting.
There are urls like http://www.example.com/search.asp?it...6&third_id=Red
To get some keywords in there, I was thinking how to get a URL like this http://www.example.com/Widgets/Special/Red/search.asp OR http://www.example.com/special-red-widgets.html convert automatically into the one above with ? and ids..
If this can work, I can have keyword rich URLs, which when clicked can turn into old ID urls, and fetch relevant content from the CMS.
I've heard about IIS redirect but am not sure how it works. Considering that the site is on a shared hosting, I wanted to know your opinion and best ways to achieve this.
I tried to display an error detail on my webpage when I got an "HTTP 500 Internal Server Error" of my .asp page, but I was failed I did setup in IIS so it will display debug error on my asp page as well as setting up my browser internet option.
Can you help me how to set it up so I am able to see the error detail on my browser when I get "HTTP 500 Internal Server Error" ( Currently, I just got a blank page with "HTTP 500 Internal Server Error" in the web page title)I run IIS 5.0 and window professional xp browser.
i have this code to show the numbre of users who are currently in my asp page... but its showed directly in the page and i want it to be in the status bar.
I'm looking at C# and ASP .NET these days. Visual Sudio 2005 looks like a neat dev. env. But before committing, I would like to know more about the current status of these tools. I noticed, that my site hoster does not support ASP at all.
And more providers do not... PHP however, IS supported a lot, but does not have anything like .NET facilities, does it?
What is the status of the language wars these days?
Is there anyway I can check to see if a server is online in my network with an if statement saying if online response.write "Online" else response.write "Offline"?
I'm have a page which requires considerable database processing before writing the results to the page. I therefore wish to have a "Please wait message" up on the screen whilst the main page is processed.
I've tried Response.redirect hoping that the previous page will stay until all processing on th main page is complete and id drawn but this is not the case.
I want to offer on our organisations intranet a support site for our webmasters, one of the features I'd like to add is a server status page. Currently webmasters use MS Frontpage to connect from their local PC to our development servers, work on their sites, then publish from there to our live servers.I have found an ASP component that can PING a server(s) however whilst normally this would be the ideal solution, are organisations firewall currently has PING blocked, I have spoken to the person resonsible for the firewall in the hope that he maybe able to unblock it for specific servers within our organsations, thus allowing me to check whether the servers are up or down, but I expect the 'block' is probably a blanket block, ie all or nothing, so its probably unlikely it'll be changed.how I could check using ASP whether or not its possible to talk to another server without using PING?
I am wondering if this is possible. I have an ASP page that calls a stored procedure (MSSQL). I want to display the status on the ASP page as each process is executed on the Stored Procedure and ASP page. For example, when I connect to the database, show the user that a connection has been made or in the stored procedure when some tables are updated to show that.
Im trying to figure out if a checkbox was checked or unchecked on an ASP page. I want to store Completed or Not Completed to a variable based on the status of the checkbox. My first page has all the checkboxs and my second page will do all the processing so i need to pull the data from the prior page.
This is what i have so far:
dim chk1stat If request.form ("chk1") = true Then chk1stat = "Completed" Else chk1stat = "Not Completed" End If
Status = true and false is not working for me is there another way?
I use CDONTS to send out my mail. But I want it to report me whether it can successful delivery or not.I want it both delivery report and non delivery report. Does this object has property to do that ?or Could you please suggest me other componets that have these feature?
I have a form which submits data to a new page based on the checkboxes that are clicked corresponding to each row of data. My next page has a cancel button which takes me back to the first page I have to retain the status of the checkboxes that were checked.
How do I do that? The no of checkboxes depends on the no of rows of data returned I have them named in a for loop as strcheck0, strcheck1 and so on . the data that is submitted to the next page is assigned to the value attribute of checkbox.
I'm trying to see if there is a way to display what a users Cookie status is. For new members joining my site may have cookies blocked and not allow "Session"'s to active...
i've got a client that wants to be able to review records about IIS generated emails.
in his own words, he wants the "ability to track and report message status (i.e. how many messages were sent successfully, how many were blocked, how many bounced back with an incorrect address)"
i'd start by adding a new row containing the email address, dateTime, etc when first sending the email, but how to track the rest of the info? for instance, if an email bounces back, does it bounce back to IIS or to the "from" email address? what about the blocked (i.e. spam filter) emails? is there a way to track blocked email? since most spam filters don't generate response emails, there's not much i can really do about this, is there?
this will be run off an IIS6 server. can anybody tell me my options?
I have some experience in asp coding and we have a nice "Help Desk" portal in our company. The only thing it's missing is an online indicator, where people can see online availability of other co-workers and so on. I want to keep the portal simple as possible.
We are using MsSQL as database. There are about 10 users who are going to use the online indicator. Login is integrated in AD / LDAP. I just dont know where to start making of the online indicator?
When I launch a popup window from our application, the status bar now shows up for some reason. I explicitly turn it off in the code that launches it. This problem just started happening after our app has been around for more than a year. It may be because of I.E. SP2, but I'm not sure yet. If anyone has experienced this problem.