Images In Include Used In Different Directories
I have an include file which contains some images. If I use this include in a sub directory, the path is obveously wrong. How can I sort this problem - is it best to just use absolute paths rather than relative?
View Replies
ADVERTISEMENT
I'm creating a site which will have the home page at the root level, but all of the sub pages in sub directories:
root/
-homepage.asp
-subdirectory/
subpage.asp
-images/
logo.gif
-includes/
header.asp
Each page of the site will have the include <!--#include virtual="/includes/header.asp" -->
header.asp is a table with our company logo, logo.gif. The problem I'm having is that subpage.asp does not display logo.gif because the path in the include is only correct at the root level.
I don't want to create multiple includes. Is there another way to make this work that I'm missing? Thanks!
View Replies
View Related
I have only been developing small sites using asp and Access database. I want to advance my skills and develop a large site. Basically, I need direction in relation to having a user set up an acct., and once set up, being able to upload images. FrontPage (dare I say it) has always enabled me to allow visitors to upload one image at a time, and then only to a specific directory. What I want is the ability to have someone upload a specified amount of images to a directory that is created when they opened their account. ie., /tom/images If anyone knows of of good tutorials on this, I sure would appreciate it. I also want the ability to check images file size and dimesions, and resize or reject if neccessary. Can I learn how to do this w/out buying some program online.
View Replies
View Related
I would like to know is it poss to show images from the images folder when used within an include file? Folders I have are:
inc
images
The include fie is requested via a Querystring, but images don't show.
I've tried:
../images/img1.jpg
images/img1.jpg
still blank.
View Replies
View Related
Can someone please give me advice or help me ...I don't know why the include file / image doesn’t work. What did I do wrong?
Here is my project:
In the wwwrootmyproject has the includes folder, images folder, and index.asp.
wwwrootmyprojectindex.asp
wwwrootmyprojectimages
wwwrootmyprojectincludesheader.htm
wwwrootmyprojectmathcalculas.asp
I create an header.htm page and save it in the includes folder. Because, I want to use the header.htm page in other places.
The images folder contains all the images in there.
Here is my header.htm page:
<table>
<tr>
<td>
<img src=”images/header.jpg”>
</td>
</tr>
</table>
==
Index.asp page - the include works..the header image shows.
<body>
<!--#Include File="includes/header.htm"-->
</body>
here is a problem, I created a Math folder in the myproject. In the math folder I have a calculas.asp page.
In the calculas.asp, I've included the header.htm page
Here is what I did in the calculas.asp page.....
View Replies
View Related
I am posting this question for a second time, as I received no answer
on the first post and am desperate for resolution.
I am using
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition",
"attachment;filename=Letter.do*c"
to download my asp page to the client. The download process works
great but when I open the .doc file it is missing the image included
within the html <img> tag of the .asp page.
How do I get the image to come down with the text?
If someone could help me out it would be greatly appreciated.
here is the image tag <IMG src="LargeLogo.jpeg" align=left>
This image is not embedded in the word document.
View Replies
View Related
I have an application that has many different look and feels(?) based on the client.
Currently my site uses frames with top_navbar appearing in the top (which appears based on the stylesheet of the client) The main frame houses the welcome page which is stored in a directory relating to that client) or other pages stored in a generic directory (VC) which holds all pages that are common to all clients. In this directory is an IMAGES directory which strangely holds all client's images together....there are some common ones...thats prob why its done like that.
In order to improve the accessibility of the site, I decided to do an include of the top_navbar, to get rid of frames. This works fine when included in the welcome page as the file paths to the images is correct, but when i do it to from a page that is held in the generic directory (VC) the image path is obviously not now correct.
My question is this...How can i get top_navbar to check where it is before setting the filepath to the images? Is this possible?
View Replies
View Related
I am using:
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition",
"attachment;filename=Letter.doc"
to download my asp page to the client. The download process works great but when I open the .doc file it is missing the image included within the html <img> tag of the .asp page. How do I get the image to come down with the text?
View Replies
View Related
I know how to copy files from one location to another but how would I go
about copying a file from one directory into serveral - or actually all
subdirectories in a single action? Some kind of loop
Basically I want to be able to enter a filename into a text field and click
submit which would then copy the named file (which resides in the root
directory) into every subdirectory under the root (1 level only). Would be
helpful to be able to specify mutliple files to be copied at once.
View Replies
View Related
I found this script on the web that I've adapated a little to see the files I put into a directory. However it doesn't see any sub directories. Does anyone have any idea how i can point to a directory and list everything, including the directories? Code:
View Replies
View Related
It's funny that this has not been invented yet, or has it?:
You store your DB outside your default website.
It is accessed only through your ASP code and a ODBC-connection.
This way your DB is not obtainable for the web user.
Why doesn't Any One create a connection corresponding to ODBC, lets call it
FileConnect that in the same way allows us, in a web site, to have directories
and files that are really hidden?
View Replies
View Related
In php you can have a script like: http://localhost/page/parameter1/parameter2
where page is acually a php script and the script gets the parameters in $PATH_INFO
I need something similar in asp. If possible without modifying any settings on IIS.
Here is a tutorial on how to do it in php. http://www.zend.com/zend/spotlight/searchengine.php
View Replies
View Related
I am trying to set SA-Fileup to filter the files that are uploaded based on the name of file selected in the form. I am able to get it to work on Filetype, but I need it to do it on Filename is not Filetype. where I can find something on this?
View Replies
View Related
i have a subdomain on my works server that i use to store different stuff on, like different projects that i'm working on. They are all set up in their own folders, for example, sub.blah.com/project1, sub.blah.com/project2 etc etc. (all the folders have different names).
What i want to do is to create an index page on sub.blah.com that will list out all of the folders. I dont have any access to the server workings so this all has to be done with a script.
View Replies
View Related
My global.asa maintains some stats for me. However when I put part of my site in a sub-directory it appears to run the global.asa file from the sub-directory when I am accessing content in that sub-directory. This makes all the paths specified in global.asa wrong.
I can understand that it runs, since it is application driven and all sub-directories will be part of the same app, but I can't understand it running in a different directory to where is resides.
View Replies
View Related
Is it possible to create a directory in ASP? If possible, how?
View Replies
View Related
I have several files and directories and I want to read the contents, seperate them into fields and INSERT them into a database.
The structure is as follows:
D:DISCSSC8849SC8849-01 Artistname - title.zip
D:DISCSSC8849SC8849-02 Artistname - title.zip
D:DISCSLG114LG114-01 Artistname - title.zip
I want to read every file in D:DISCS, seperate the filenames into: Disk Number, Track Number, Artist and Title - drop the .zip and the hyphens entirely and insert the data as a record in a database.
View Replies
View Related
I'm including a template on all pages in a site. In the template I have a menu. What I'd like is to have a different menu displayed if I'm in a different directory. Something along the lines of:
If path is /mainsite Then
Regular Menu
If path is /admin Then
Admin Menu
Just not sure about how to go about getting there. My first thought was to use the PATH_INFO server variable, but that returns the page name too. Any suggestions?
View Replies
View Related
I'm having a problem with cookies in a virtual directory,
A cookie is created by an ASP application in the root folder i.e.
http://xxx.yyy.com
I'm unable to read this cookie in a virtual directory i.e.
https://xxx.yyy.com/mydirectory in a Visual Studio 2005 application.
If I create the cookie in my virtual directory the application in the root directory reads the cookie without any issues.
View Replies
View Related
Is there any way to setup a multiple password page where if user1 logs in it will take him to dir1 and if user2 logs in it will take him to dir2 and so on. Basically, we need a page that checks to see if the user name and password exists and then redirects accordingly.
View Replies
View Related
I have managed to cobble this together And now I have got stuck with modifying it.
What it does is provide an option box that allows you to choose any of the folders in a directory. The files in that directory are then listed below the option box. (the file structure dictates the order/grouping of the files)
It change the path-to-directory with a manual option. Code:
View Replies
View Related
Can a session be good for two different virtual directories under the
same site? They are for internal use only.
Would the session be carried from the virtual directories?
Site one is : http://fs1/review1/
Site two is: http://fs1/review2/
View Replies
View Related
how to do Editing of default IIS directory listing template. How would you edit the template that IIS uses to list directories?
View Replies
View Related
I want to be able to list FTP directories using any FTPs. Are there any free dlls out there?
View Replies
View Related
I need to look up what user name was used to login to a protected directory using ASP.
I don't want to create a login page, etc. It shouldn't be necessary. Only employees who already have user accounts need to log in to the webapp and the protected directory login box is all the security I need. I just need to be able to access the username that they used in my application. Code:
View Replies
View Related
My page have background image,on that image have more images and text. My problem is whenever resize browser that images are not resized and also not moved correct place .(i.e look not like before alignment).I want to do everything in dyanamic....
View Replies
View Related
I have a client who wants to password protect a learning course that is set up in modules. Each module needs to have it's own password protection so users can only access them as they progress through the course.
Each user should have their own password (for each module) and, said client would like the password to expire for the user at some (predetermined?) point. Is this possible? It seems like a lot (in terms of setup), but I don't know much about password stuff.
If it is possible, can someone give me an overview of how it works (theoretically) or where to find more specific info on setting something like this up (in ASP.net)
If it isn't possible, can someone suggest what is more reasonable in terms of protecting the modules?
View Replies
View Related
I want to be to call my menu from another file onto my page so that i dont have to add it to every page of my website. The problem is when i try to add it using the include method it says that only one include file is allowed on an ASP. The other include file is my connection string so i cant really take that out of the page because then nothing else will work!
How can i get the menu page included as well as the connecting string?
Have added the code below, i have highlighted the 2 include files that i want to use in blue, i have also left the div tag in for where i currently have the menu which is what i want to take out and have ther include file there instead, if that makes sense. Basically the bit in red i want to be able to remove from all of my pages and add the blue file above the red code in instead, but i dont know how!!!!! Code:
View Replies
View Related
I have been using pure asp upload for uploading pictures and files fo rome time now.
I have a question about it thou - Is there any chance that the pure asp upload can upload a file to a directory and then copy it to a backup directory?
If anyone ever come accross this issue please let me know how u resolve it.
View Replies
View Related
I have an asp page that displays thumbnails from my database. I want the user to click on the thumnbnails to open up the larger image which is also stored in a DB.
View Replies
View Related
i am uploading 3 images(jpg) to sql server 2000 using asp 3.0.i was using this code
http://www.stardeveloper.com/articles/display.html?article=2001033101&page=1
which was working fine when i uploaded 2 images when i tried to upload 3 images its not working.i had posted in the forum earlier about this issue
since i work for a non profit organization who cant spend money on buying some component for uploading images is there any other way or any other code or a free component thats not going to expire
View Replies
View Related
I have an image page in which has a line of small images in a row. click on it it makes it larger below. The images aren't binary form, just the lnik to the image it self. I add the images in a form, so i type in 'image1.jpg' and then it adds it to the database, and then it routs to it and shows it in the database. Now on the image page which shows the image i want a little bit of writing below the image saying its properties. So when i add the image to the database i have to write about the image for example 'A picture of Joe Bloggs' and then when it veiws the image it will say that writing underneith
View Replies
View Related
ive been looking for a .net script that will upload an image to the server, but saved an optimised thumbnail into a different directory (or under a different name) with the main image being saved as usual.
can you run regular asp within a .net page? anyone got those .net friendly url/querystring scripts again, my NG browser doesnt go that far back.
View Replies
View Related