Problem Including Files From Different Directory

I'm trying to include and calling some ASP files from different directory. It doesn't work.

I need to use <A HREF>tag to link the ASP file and image file using <img src>tag. I entered the whole http://mydomain.com/....... path inside of tag. It doesn't work.

For example.

The original web page is reside in c:webrootwebpageestpagehomepage.asp

All the image files and other ASP files are reside in:

c:webrootwebpageaspfile.asp
c:webrootwebpageimagefile.jpg

In the IE browser, the link would go to
http://www.mydomain.com/webroot/webpage/testpage/aspfile.asp

Of course, it won't work because the aspfile.asp is reside in webrootwebpage, NOT in webrootwebpage estpage diretory.

View Replies


ADVERTISEMENT

Including Files

In ASP, is there a way to use a page to mask the identity of another page? So that say I had a page named google.asp, and I wanted to include all of what is actually on google.com, is there a function similar to the the include option that allows you to mimic a page, rather than include a file?

View Replies View Related

Including Files In ASP

I am trying to include several files in an ASP script. I have a common file that does the database handling, and that common file will include common functions and classes used throught the script. Although I've checked each of the files for errors, none seem to have any, but when I call a class included from another file, I get this:

Error Type:
Microsoft VBScript runtime (0x800A01FA)
Class not defined: 'ASPTemplate'
/test/test.asp, line 7

Any ideas?

View Replies View Related

Including PERL Files Within ASP

Does anyone know if its possible to include perl files in my CGI-BIN folder within an asp page?

I've written a forum program in perl (which is all run through the same file /cgi-bin/forum.pl) and I would like to include it within an ASP page.

Is it possible? If so how? Just using the Include Virtual string? By the way I'm on UNIX with ChilliASP installed.

View Replies View Related

Including Files In An Output

why doesnt including files in an output work? or is there just a different way to do it, the below did nothing at all? Code:

View Replies View Related

Including Files From A Separate Domain ?

i need to convert some existing templates into ASP, and have come across a stumbling block (which is probably only due to my complete lack of knowledge of all things ASP related ):

is it possible to include files held on a completely separate domain ? the standards include statement only seems to have file and virtual capabilities, and nothing comparable to php's capability of doing something like Code:

include('http://www.someotherdomain.com/includes/somefile.html');

could anybody enlighten me with some workable code ?

View Replies View Related

List Directory Files

I have a directory called 'imagefiles' that contains upto 50 images - the images are named 01.jpg, 02.jpg, 03.jpg etc, etc. What I want is a single ASP page (displayimages.asp) that will display each image with a Next and Previous button to move back and forth between each image. I know how to list the contents of a directory using the FSO object and I know the URL behind the Next/Previous button could be something like displayimages.asp?image=01.jpg to determine what image needs to be displayed. What I'm getting hung up on is how to construct the URL i.e. when the displayimages.asp file is first displayed there simply needs to be a Next button and the URL will need to be something like displayimages.asp?image=02.jpg. Then when the visitor clicks the Next button the next page will need both a Next & Previous button - the URL behind the Previous button will need to be displayimages.asp?image=01.jpg and the URL behind the NExt button will need to be displayimages.asp?image=03.jpg...but how do I get the 02.jpg, 01.jpg, 03.jpg values to form part of the URL for the image variable?? Hope you see what I mean.....oh and I don't want to use a database to hold the image file names.

View Replies View Related

List All The Files In The Directory

How would I list all the files in a directory and hyperlink to relevant document. For eg.

If user has a webpage with two folders displayed on the screen i.e. webpage or threads. User should be able to chose one of the folder in this case the user clicks on the webpage folder and list of different files in that folder appears on a separate window.

The list of files should contain different file attributes such as CREATED ON ,DATE .Once the user clicks on the file the hyperlink should take the user to the relevant document.

I attached two sample image files that user must be able to view it on their screen . When the user clicks on the first image the second screen should pop up on the screen..

View Replies View Related

Viewing Files In A Directory

is there an easy way of viewing the files in a directory without using "server.MapPath"!!!
i need to view Doc files in a folder and then open them in IExplorer to print the matter in them...

View Replies View Related

Cannot Locate Files In Web Directory

I have been given a asp legacy application, on each code file they have included some files which are located in the web directory they are,

<!-- #include virtual="/dss/includes/header.inc"-->
<!-- #include virtual="/dss/includes/classes/user.inc"-->
<!-- #include virtual="/dss/includes/classes/menulist.inc"-->


But i tried to find these files in the directory and couldn't locate them (tried searching them too, no result). My application runs perfectly fine,

Any idea how this thing works and where the files actually located.

View Replies View Related

Directory And Refresh The Files

I wanted to loop through a directory and get the names of all the files in the directory and put it in a table using the file system object and VB scrip in a DTS package.

View Replies View Related

List All Files Of A Directory

How can I list all files of a directory with fso or wsh and afterwards write its names on screen?

View Replies View Related

Concerning Delete A Directory With Files

I understand how to delete files within a directory using the Scripting.FileSystemObject.
However, how can I delete a directory using ASP 2.0 on an older IIS 4.0 server? Do I need to:

1. Delete all the files within the directory.
2. Change the directory's permissions.
3. Delete the directory.

Am I able to delete a directory without changing the permissions? Can I delete a directory with files inside the directory or does the directory need to be empty?

View Replies View Related

Delete Files In Directory!

I am wanting to delete all files contained in a directory.
I won't have the name of the file...

Can i do this somehow??

View Replies View Related

Searching Directory Files

Is it possible to develop an ASP page to search within an intranet environment. The file properties searched out and then post the properties info to an access dataset ?

I had searched for commercial shareware and other searched out items only to find applications where I can get file name, created dates file sizes. Nothing more nor expandable for additional information. And then put into a spread sheet. One did work but only on minimal property info. I need to expand to more information from the properties of specific files.

Example I used was morespace, Located all files in a specific drive, folder or etc then listed a few items into a table. I need the same ability but the capability to add and change how much information I can record from the file properties.

View Replies View Related

Unable To Read Files In Directory

IIS cannot read files in a directory reporting that :

Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'Fso.GetFolder'

This has to do with Scripting.FileSystemObject.
I make sure the scrrun.dll is properly registered with regsvr32.
Still the problem persists.

Previously I do not know what I did right once in permission setting and
managed to display the said files but it went away after tweaking the
permission for make other functions available.

I scoured the web and this problem is a perrenial one. Many many suggestions
have been made even in expertsexchange site but no real solution. I don't
understand why it is so difficult to have this file system service up and
running.

View Replies View Related

Listing Files In A Directory By Date

i'm having problems trying to find information on how to write an asp
script that lists the files in a directoy

what i am looking to do is just list the 5 most recent files and list
them in descending order (newest) first

can anyone help me out here with a link, or some basic instructions,
i've found plenty of scripts that list files, but they don't explain
how its accomplished, and to me that's more important than simply
dumping a script on the server and using it

View Replies View Related

Sort List Of Files In Directory

I would like to sort (descending) list of files in directory. Parameter is directory url.
How I can to do that with ASP not ASP.NET.

View Replies View Related

Code To Search For Files In Directory

point me to some example code of searching for a file, like *.*, or *.pdf, much like the Windows search function. I am at a smaller location, away from the main office, and although I can map a drive or just use to go to the desired location, the connection is too slow to search.

I'd like to implement a search function on the intranet web (at the main office), where it will search a certain directory and its subdirectories and return the results as network links (using the convention); actually it doesn't matter how it displays the links, as long as it shows me where stuff is. That way the search is run on the computer where the originating directories are.

View Replies View Related

Listing All Files In A Protected Directory

I know how i can list and manage files (with the file object) on a normal directory with ASP. But i couldn't find any information on how do i list/work with files which are locaed on a password protected directory (with basick auth). how to make such a task ?

View Replies View Related

Free Ftp Component To List Files From Directory

I'm looking for a free ftp component so that I can list files from an ftp directory. I have found majodio.ftp ,but it costs and I was wondering if there was a free version anyone knew about.

View Replies View Related

File Directory Turned Into Include Files

I'm trying to run each file in a directory to be put into an include file line
I can't get anything to work me. Code:

View Replies View Related

Securing A Directory Of Files In A Password Protected Area

I have a client who has a password protected page (via session) that lists a bunch of pdf's. They are a little worried that you are able to browse and see the pdf's via the url without being logged in.

I'm not sure if it's possible or not but is there a way after their username and passord is verified to automatically grant them permisson to view the contents of the pdf directory?

View Replies View Related

Active Directory :: The Attribute Syntax Specified To The Directory Service Is Invalid

I have written a script to update user information in the Active Directory using ADSI. Here is part of it:

Set User = GetObject("LDAP://<GUID=" & GUID & ">")

User.Department = DepartmentName

User.SetInfo

Set User = Nothing

This works fine unless DepartmentName is an empty string ("").

Then I get error 0x8007200B: "The attribute syntax specified to the directory service is invalid."
This happens with all the attributes I have tried, including TelephoneNumber
.
Do I need to delete the value of the attribute instead of setting it to an empty string? If so, how do I do it?

View Replies View Related

Including A File In ASP

I am trying to include a file in an ASP page. But the problem is that the file is in a different folder. When i put the file in the same folder then it works fine. Is there any way to include a file from different folder. For Example I am using a file for database connection and including it in each ASP page as follows--
<!--#include file="Connection.asp"-->
So i have to put this file in each folder of my web application. But i want to keep it only at one place.
I have also done it with ../ and /(root) but both the methods are not working. These methods work properly on localhost but not on the hosted website

View Replies View Related

Including HTML Like In PHP

So far I have not been able to import a HTML-page in ASP like I can with PHP. In php you may import a page, and just get the output of the file (not the entire HTML-code, wtih tags like <body> <title and such). Is it possible to do this with ASP?

View Replies View Related

Including A Header

I have the following file structure:

/
header.asp
test.asp
/subDir
testpage.asp
/images

I would like to have header.asp to be usable from all directories. Header.asp will have images and URLs. When I try to #include the file in test.asp, it works fine. However, if I #include it in testpage.asp, the images in header do not work - testpage.asp thinks the images are in subDir, when they are in the images directory. I have tried a variety of combinations of MapPath, Server.Execute, but I have not gotten the image to appear correctly. What is the correct syntax for what I am trying to accomplish?

View Replies View Related

Including A Library

I am trying to use the example located here: http://www.asp101.com/articles/jacob/scriptupload.asp

If I have vbscript v5.0 do i still need to include a library inorder to create a new FileUploader object?

View Replies View Related

Including Another Site

I'm after some coding that will allow me to include another url (website) on my page.
What I basically want to do is keep my header and footer and use the information off their site so that when they update it mine will be too. I have their permission to do this.

What include statement would I use.

I know I can do it with frames but I would perfer to use a simple include statement.

View Replies View Related

Including Asp Codes

I have included all the db scripts in asp above the <head> tag and <html> opener tag.When i submit a page, to add a record that record just get doubled and i dont know why that is happening.It dont happen always but now and then. The problem is not with cliking the submit button twice. So all i want to know is if it may be a problem with including the asp codes above the html tag or not?

View Replies View Related

Including One Vbs File Into Other

how can we include one vbs file into other vbs file?

View Replies View Related

Including .txt File In If-Then Statement

How would I go about including a .txt file in an If-Then statement? Basically what I want is to have a certain file included depending on what the value of Request.QueryString("type") is equal to. Any ideas?

View Replies View Related

Including A Page From Another Server?

How would I go about displaying a plain text page that is located on a
website that is not my own? For example... my site is www.x.com and
www.y.com has a news article at http://www.y.com/article1.asp and i want to
"include" this file on a page located on my site (www.x.com).

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved