I have a IIS web site that works fine on one server but not another. I do not know if the problem is an IIS setting or something else so I will try to include as much detail as I have figured out so far.
Several web pages allow the user to download PDF files to be viewed or saved locally on the user's machine, not in the browser. Those web pages all redirect to a single ASP page with QueryString parameters identifying the relative path to the desired file on a remote server. The redirect URL would be something like:
i would like to display the files in my database...and create a link for it...then when the user click on the link,they'll immediately see the download doalog box instead of the file's contents...currently im only having a coding which will pop-up the download dialog box...
My website is hosted with the ISP and recently I have modified my Global.asa file for the ASP application.
So I think we need to restart the World Wide Web Publishing Service so that the changes in the Global.asa will take effect. I think it will be difficult for the ISP to restart the Service as there many applications will be running. So can you suggest how can my global.asa file changes will take effect so that I can deply those changes?
Session.Timeout - does this affect all session variables that the user currently has stored, or just the one created on the page where this function is called?
In other words: I've got one set of session variables that I'd like to have set to timeout after 60 minutes, and another set session variables that I'd like to set to just 10 minutes - is this possible? (these variables are set on different pages, mind you).
I loose part of my table layout and get an error message on a missing file (stylesheet file), If I however first display the table as Excel in the browser and then save it as xls it does save the layout and the stylesheet settings...Can someone tell me if there's a better way of doing this or is it just not possible to get it better than this?
I have a web site that has some "old" .html files that are very well indexed by Yahoo! I don't want to lose my ranking, but I updated the site and the old .html files are now .asp files. In another forum, seochat, someone told me to use this for the purpose of a redirect, but didn't elaborate on how to do it. Can you help. Where do I put this code, not in the .html file
Can anyone please give me an actual example in code on how to add a header for the "HTTP/1.1 202 (Accepted)" response code:
I have searched the web high and low and all I can find is example in the format of:
response.addheader (custom header, value)
This really does not help. Can anybody please just show me how to use response.addheader to add a header for the "HTTP/1.1 202 (Accepted)" response code:
Using ASP I'd like to modify a string that contains HTML. I need to modify the content (the bit that the users see) but not the stuff in the tags. For example, if I had the following string Code:
I have started doing SEO for a website and I'm trying to get a feel for how the website is set up.I dont know which file stores the content.... In the asp file page there is a string of code that reads:
<%Call writeContent(2,1)%>
I believe it is what is telling the server to find the article, but I dont know where it is.Does anyone know what else to look for?
I am having to make sites accessible where images are dynamically generated.
'Display the graphical hit count
Response.Write("<img src=""counter_images/") Response.Write(Mid(lngVisitorNumber, intWriteDigitLoopCount, 1) & ".gif""") Response.Write("alt=""" & Mid(lngVisitorNumber, intWriteDigitLoopCount, 1) & """>") How do I include the width and height attributes in this code?
What is "active content"? My ASP page just returns HTML....
I have a page with an .htm extension that has a form whose action is an ASP page which generates a report after updating a database with the form data.
Under Windowx XP SP2 the IE6 "Information Bar" has the message:
"To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer."
I would like to have a PRINT button on my page, that redirects to another page which is more printer friendly. I am pulling the content of a database (msAccess) into the initial page, and want that content to carry accross..
Here is an example of the page http://www.australie-voyages.com/en...-tours.asp?id=8
can someone help me. I'm writing an onlineshop in asp and for the shopping cart i use an array. If someone wants to delete some articles from the cart, i have to delete them from the array. How i delete only one article (on line) from the array.
i am building some web page with template engine and i run on one problem: i want to import a content of some file and then use it in asp script so the solutions are this:
1: Create file system object and use ReadAll to read the content but there is a problem because it dosent render the importet file i get just the asp code
2: Create XML object and load the file into the xml but here is another problem this proccess takes quite a lot of time so it will be very slow for the web site especially that i want to import more the one file...
3: Create file system object and user ReadAll to read the content and then use eval(reasponseString) to execute this code... but i dont belive to much in this solution i dont know why but it seems to me it's not right.....
If you needed to have a side bar, that had room for 2 or 3 graphical ads, and you had say 8 ads to pick from, and you wanted each page to just randomly load ads but never put the same 2 or3 ads on the same page...
I've been looking at content negotiation for serving up pages as xhtml/xml or text/html based on the user's browser and using PHP you use this: PHP Code:
function fix_code($buffer) { return (str_replace(" />", ">", $buffer)); }
ob_start("fix_code");
to remove all the / end of tags in your text/html code. Is there an ASP equivalent to this?
I'm writing a site scraper (bot, etc.) that needs to log into a site (i have the username and password), then redirect to a particular page and then pull that content into a variable so I can manipulate it. I'm using ASPHttp to try to pull this off. However, I CANNOT get by the login. According to ASPHttp this should be possible, but I cannot make it happen. I would not imagine this would be too hard to do. Perhaps ASPHttp is not the right tool.
After a user selects the 'answer' hyperlink, the answer will be pulled from the database and displayed. Then i would like another link once selected to remove the displayed answer from the screen. It is important that the answer is not permanently deleted from the database. I would like to do this for a series of questions.How can i do this?
I'm using the Server.Execute method to include a static page inside a dynamic database call. This static page is not a valid HTML page (i.e. lacking <body>,<head>, etc. elements), but I'm pulling it into the dynamic page just to give the content an upgrade in presentation, including images. The problem is that there is no way to have relative URLs in the content page, so all the image src's are wrong. Is there a better way to include static content like this, or a way to alter the contents on the static page prior to running Server.Execute (I could parse the file via the FileSystemObject, but I'm hoping not to do that)?
I am currently taking a lot of web form information and compiling it into a word document for users to download; however, I want to be able to embed any attachments that they have inside the word document. The attachments are coming from a database and the office suite does not reside on the server. Does anyone know if it is possible to create a word document with embedded attachments for download.
I want my Default.asp page to view different content in a <TD> according the request. I've been understand that the best method to do it is by using the method GET, Example:
On the website i'm working on, i'm using a database filled with pdf files. Users can download these files from the website. When you click the link of a file, you see a popup screen that asks you wether you want to download the file or open it. My problem is that it is empty behind the content type. The download works fine, and i have the content type stored in my database. What do i do wrong here??
If Not rs.EOF Then Response.AddHeader "content-disposition", "attachment; filename=""" & titleDownload & """" Response.ContentType = rs("Content Type") Response.BinaryWrite rs("File Data")
I am looking to pull the contents of a folder and display them. I have been able to do this from the code below but only from a local folder. I would love to be able to get the contents from a web folder. Code:
I am trying to read webpage content into a string variable to be able to search it for a pattern that I want to be able to display on another ASP page.Is there any obvious method to do this with VB script?It would be something compatible with following PHP script:
<? $fd = fread(fopen("http://www.vedur.is/vedrid/stutt_spa.html?", "r"), 100000); if ($fd) { /* $start = strpos($fd, "<unique HTML tag>">"); */$start = strpos($fd, "Veðurhorfur á landinu til kl. 18 á morgun:"); /* $finish = strpos($fd, "<unique, sem næst lokun HTML tags>"); */$finish = strpos($fd, "Næsta veðurspá er væntanleg"); $length = $finish - $start; $code = substr($fd, $start, $length); echo $code;}?>