I am trying to learn new stuff using asp. That means I am downloading a lot of examples and looking at them. Sometimes thats all I do is look and compare his/her code to my attempt but also sometimes I need to see a working demo. I find I am replacing the path a lot. Is there a faster way to do this.
can Create a txt file with paths in them and use that to get paths from. It would be differant if I was using the pages but I do not evan have a webpage yet just iis setup on my home comp.
my new host is 100 webspace(http://freeunixhost.com)My details are sugster & the root folder is sugster.freeunixhost.com, there is a folder called ads where the db is located.i have tried many paths which i thought would work but to no avail.
I am trying to solve a problem on a production server, that unfortunately is not repeatable on our development server. It is for a bank, and the site is being hosted by a different company.
Anyway the problem is this. There is a directory where a number of pdfs are stored. Here is the structure.
The current pdfs we want to access are in the bank/bank2004/images/pdfs/ directory. The old pdfs with the same names but different content are in the bank/images/pdfs/ dir.
There are three types of pdfs we retrieve. Personal Applications, Business Applications and Brochures. Our software writes all three types to that branch of directories fine using pretty much the same methods for each type. But when our web pages read them back, the 'brochures' type are pulled from the old bank/images/pdfs directory instead of the current 2004 one. The appplication pdfs are fine, they are read from the 2004 branch. The code used to get the applications is virtually identical to the brochure code, and it all works like clockwork on the dev box with exactly the same setup, so it cant be the code.
I'm guessing it's some kind of directory mapping or someting on the iis server, but I dont have access to the configuration of this server. There are quick fixes to this problem, such as putting all our new pdf brochures into the old directory, but my boss wants to know why this is happening.
Has anyone had a similar experience who can at least point me the right way. I have next to no knowlege of iis, but I'm guessing it has to be server related.
/ios/includes/main_page_open.asp, line 32 The call to Server.Execute failed while loading the page.
The basis for the error is pretty straight forward - because the file (main_page_open.asp) is being called from a directory, two deep, the file attempting to be executed cant be executed because the system is looking in the wrong directory.
Now, before someone says; change the path; I cant do that because many (about 100) other files reference the same file with no problem.
If I've enabled Parent Paths (PP) in IIS, but have installed the URL Filter and disallowed ".." and "../" within links, am I covered from the vulnerabilities of PP's?
This allows me to use PP's in #Include statements, but doesn't allow visitors to use PP's in their links to access directories on my server.
Our web application is currently using relative paths in various places throughout our code. im working on eliminating this, but not sure of the best way to go about it. i want to avoid hardcoding the path to make migration easier and more manageable. i thought there is a way to user the request object?? request.servervariables or something -
Anyone know a useful way of hiding image paths so images on my site cant be directly linked to?
I've seen sites that use <img src="image.asp?/moo/fred/image01.jpg"> (where the path starts from www.domain.com/secretfolder/moo/fred/image01.jpg) but dont know how to set this up.
BTW am on a shared host so dont have the use of base level administration if it makes any difference?
I have developed an application which works correctly when hosted on a server running Windows Server 2003 and IIS. However, I have to present this application to a different company so I want to create a standalone version on my laptop. My laptop is running Windows XP, IIS 5.1 and has SQLServer Server tools installed.This works on the server: Code:
However, I have to add the folder name to the path:I know that I could go through my application changing all of the paths but each time I make changes to the pages I would have to go through the application changing the paths again. Can anybody tell me if there is an easy way of configuring my machine to resolve the file paths to include the name of the folder?
Does someone have a reasonable method for concealing the paths to data when using ASP to MS Access?
I maintain a website where some data is intended to be released according to date:time. Some visitors like to "jump the release date" and just copy-n-paste the visible short cuts so they can get an early view of the material stored in a MS Access database.
Because I do want to continue using a straightforward naming convention for the various files, I was hoping someone might have information on how they had kept from pre-releasing information in this situation.
I have a standard Header.asp that I want to include in every other page in my site. Header.asp is located in the root folder, but the calling pages are in various folders/levels. Since the relative paths specified in header are subject to change and are based on the relative path of the calling page, problems arise. (Strangley, using the IFRAME method of including a header doesn't react the same way.)
The solution I believe lies in using absolute paths in the Header.asp file using the "virtual" include qualifier. But this assumes your development directory structure is the same as your production environment. So I guess that is the answer. Use absolute paths and set up your development directory structure to be identical to your production.
I got a problem when I uploaded a file with the input tag of type file "<input type=file.." using the FileSystemObject where The page not opens and there is no any respond, but I tried to see if the folder that is already exists xan I see by that object I discovered that it is not exist.
The main problem I put my files in a folder that I dont know its absolute path , just a relative that always not exist.
Scenario: I need a virtual directory in Site_B to serve the files in Site_A (without redirecting the request) so I just added for example Site_B/A as a vdir, and set it's home dir to the physical root of Site_A (eg. C:inetpubwwwrootSite_A) sounds simple enough... not for long:
Problem (nb. I tend to use forward slashes as web/iis paths and backslash as windows filesystem paths):
The include files in Site_A reside in: Site_Aincludes and the include statements in the ASP code seem to be absolute virtual paths (if such a thing exists) for example: <!--#include virtual="/includes/header.asp"--> Code:
I am creating an edit facility for an online showroom which I want to output the contents of a database record into a form so it can be edited and updated by the user. Two of the form fields are text boxes of type="file". When I try to output the value of these filenames to the text boxes they don't appear.
I have tried outputting these in a normal text box and they output fine so it is obviously a restriction when outputing to file type text boxes.
I am currently having problem with parsing .asp files when I tried to type http://localhost/iisstart.asp file with my new IIS local server.f I tried to open .html with my localhost server.. it is working properly, example: http://www.localhost/postinfo.html
I suspect it could be because of my firewall or the way I setup my IIS local webserver was inappropriate.
Does anyone know about setting up IIS on WinXP? I have it installed but when I try to use it, it asks for a username and password, and I dont know what the username and passwords are. Any ideas on how to fix this?
I am not able to set cookies with the domain name on a Windows 2000 server with IIS 5.0. If I use the IP address it works. I have another machine running IIS and I configured them together.
im trying to set up an array of database records. i want to be able to display all information but only display the request numbers once for each number...while displaying all seq number's associated with each request number. ex:
right now, it works so that the request numbers are printed out for each seq number....i've marked the section of code where the problem is being caused...i think it's in the way im trying to set up the array. Code:
i'd like to make asp page which will run on my computer and other users can connect through the internet on it ...it's a simple one asp page. .. the thing is i don't know how to setup ASP server ... anyway ... Code:
I have a dropdown box in my ASP page, which the user can select multiple values. I can read the values out and save them to my database, but how do I make the selected values appear selected on a page when the user goes back to edit/update page?
Have tried the following JavaScript.... document.frmAccom.selAccomType.value=1,3; document.frmAccom.selAccomType.values=1,3; ?? Doesn't work
How do one set the HTMLDirectionality of a Page that is using a Master Page. Normally one would have set the 'dir' attribute of the <html> tag, but one cannot do that on the Master Page.
I am making a small ASP script to track users from an email marketing campaign. Basically the email is sent to subscribers, then when they click on an offer they are sent to a third party provider. Right now we can track how many users open the email, and how many visit the site, but we would like to track conversions. The third party will only provide stats via referer. Is there an easy way in ASP to set a referer to a custom url during the redirection?
I have not used ASP before. Are there cookbook instructions for how to set up an asp directory structure. It is not clear to me how I must mark directories (virtual or physical), so they will all be considered to be part of the same application.
I have no idea what would cause this because my system setting is set to English and all of my other programs that use the date and time are doing it in English but my ASP seems to be giving me the date in Italian For example..
WeekDayName(WeekDay(Now())) = venerd́ instead of Friday.
Is there anyone out there who can set up a relatively easy shopping site. I will need it for selling music cds. This would be for about an inventory of about 2500 titles, which I have in .csv text format or MS Ecxel or MS Access but it should be database driven and easy to be maintained by a non-techie.... I was thinking of mals-ecommerce (oscommerce, I hear has been somewhat difficult), or some other ones that I've seen out there, like ezstores.net, comersus.com, cactusshop.net, or www.alanward.net/acart Thank you very much, and please ask questions, as I am sure there is something I probably left out.
I just want to know what are the setup needed to run my web page without logging in to the server? Im using Windows NT 4.0 as my server and using IIS 4.0 and Micorosoft Transaction Server.
I have this large include file that will change based upon the page that includes it. Is there a way to make the include dynamic, for it to know which file is calling it and use variables based on that file?
I'm trying to use CDO with ASP. How do I set the value the user types in to be a variable that I can use?One specific of this is I want to have a text input for the user's email address. The value the user types in will be stored as a variable (hopefully, if this is possible). I assume it would be something like this:Code: