Image Not Displaying From The Include Page
I have designed asp pages where all pages have common header and footer. I have added Images to the footer page called as footer.asp.
now i have the footer.asp in another folder
and i call that footer.asp within my index.asp page as a include page.
but the images in the footer.asp are not displaying in the index.asp.
what could be the problem?
View Replies
ADVERTISEMENT
I am creating a dynamic ASP VBScript page, which gets data from an Access database.
In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database.
I think what I am trying to get to is the following:
If file exists (using URL from database to get location of image file) then
display image using the url from the database as the image source
else
display default image - hardcoded in program
endif
I have had a go and come up with the attached but I get an error with my if statement...
View Replies
View Related
I'm sure I'm missing something completely obvious, but I can't figure out what. I have a path to an image file stored in a database. I'm trying to align the image to the right, but nothing seems to be working:
Response.Write("<img src='" & rs("faculty_link_to_photo") &"'>")
dispays the photo without any wrapping, but when I try the following, the images go all over the page:
Response.Write("<img align=""right"" src='" & rs("faculty_link_to_photo") &"'>")
Can someone tell me what I'm doing wrong?
View Replies
View Related
I have ASP (classic) code that writes out a table and sets the <img....> tag
with a virtual directory source, e.g. src='/test/imghold/xyz.png', and the
images do not appear on the IE page. The code is from a production site
that works fine.
We just duplicated the web site to one named test and now
the images do not display. The IMG item is in a TD element of a table.
Also, I looked at the "view source" of the page and it shows the <IMG
src='/test/imghold/xyz.png'...> just fine. I even tried it with different
images and none of them show up.
View Replies
View Related
It is not displaying the image thepicture. It is in the directory. I also have a similar bits of code for a other pictures with of and they is working The response write displays the correct reference.
The alt displays instead of the image as though the image has not been found and as I said the Code:
View Replies
View Related
I have images stored as URL paths in a text field and want to include the image in the call but this code only produces the file path of the image:
<%
While Not objRS.EOF
Response.Write objRS("RedArrow") (((this is one of two images in the loop)))
Response.Write objRS("GreenArrow") (((second of the two)))
Response.Write objRS("Step")
Response.Write objRS("Snippet")
objRS.MoveNext
Wend
%>
How do I get the image and not the path to appear in the loop?
View Replies
View Related
I have to display tif images using .asp page. I have tried to read the image
as a binary file and stream it to the browser. The relevant code is as
follows. Unfortunately, the display on the browser is a lot of gobledygook.
How can I ensure that the image displays correctly in the browser? Code:
View Replies
View Related
The pic in the DB is just a named reference, as all the pics are stored in 2 common folders. 1 for the normal size pics and 1 for the thumbnail equivalents.
As this particular page has to be tight on space, I wanted to set the image as a percentage of it's size so I set the following:
<IMG SRC="thumbs/<%=picname%>' WIDTH="30%" HEIGHT=30%> etc....
Problem I have with this is that the browser seems to set all pics to 1 common percentage size rather than each being say 30% of each individual pic's size. This results in some piccies being completely distorted.
I don't want to go down the route of storing the x and y of each pic in the DB, so could you please let me know if I am doing something really stupid with the above.
View Replies
View Related
I want to retrieve some data from my database when certain parts of my map are clicked, and display them onto the same page. how would i go about doing this? (if at all possible) .....
View Replies
View Related
I dont know if this is the right place to ask this but I have a database which contains shop details, each of which can have several images associated with it. In the database I am just storing the image paths, the actual images are held on a remote server.
I am able to grab the pathnames from the database and then use the following code to loop through the recordset displaying the associated image(s).
While NOT rs.EOF
Response.Write("<img src=""servernameImages" & rs.Fields(0) & """ width=""150"" height=""150"">")
rs.MoveNext
My question is, in the event of one of the images not being found, it just displays a red cross, is there any way of testing to see if the image exists before I try and display it?
View Replies
View Related
I wish to display an image from a folder based on the name held in a field in a database.
<%
If len(rssal("picture"))>0 then
Response.Write ("<img src=""/ProductImages/rssal("ProductCode").gif"">")
ELSE
Response.Write ("<img src=""images/sorry.gif"">")
END IF
%>
View Replies
View Related
An application is logging faxes sent in SQL2000 image column type. I have
found code on the net but what it is doing is prompting to save to local
which is fine for single page image. Not good for multiple page faxes. I
have not been able to locate an example to load in the browser or how to
handle multiple image in the one column. Code:
View Replies
View Related
The code sends an automatic email, but the email is html format. At the top of the email i want to include an image.
Everything is working except the image is not being included, instead a box with a X appears.
Here is the code that i am currently using
Dim htmlMess ' THIS STORES THE HTML CODE
PHP Code:
View Replies
View Related
Following is a function on button click event to display the details of an user.if i include this function page is not displaying.can u tell me where the mistake is? Code:
View Replies
View Related
I have IIS 5.0 configured in win2k server. When I browse a html I have no problem. But when I browse an asp page, the browser is hanging around.
View Replies
View Related
I am trying to create an XML file but i want to create an ASP page that will eventually save the XML file to the site, but to get the formatting of the file correct first, i want the ASP page to display the XML in the browser window. as an example: Code:
Response.write "<graph caption='Feburary Track Listend To' xAxisName='Date' yAxisName='Total Tracks Listened Too' showNames='1' decimalPrecision='0' formatNumberScale='0'>"
as i have it i can see the line if i view source but its not displaying on the actual page. Once i have the format of the file correct i will need to save it to the disk on the web server but for now i just need to see what will be saved.
View Replies
View Related
I have an XML file, which is a phone list of staff for the firm i work with. I need to display this in an ASP page. Is there a code which will do this? As it will be live and update as the XML file is updated.
View Replies
View Related
I recently downloaded the Baby Web Server, installed it and started it. I was trying to run a website for a printer setup page on the webserver which came from a CD (I didnt modify any thing).
When I was trying to run the website from it gave the headers of the website without the menu and the mean page. and when i was try to run the menu page independently it was showing some thing like: Code:
&eprinter=&action=pause&page=" target="main" title = "">
&eprinter=&action=resume&page=" target="main" title = "">
&eprinter=&action=purge&page=" target="main" title = "">
I dont know if this information is enough.
View Replies
View Related
I have a website that we display images we have saved into a SQL Server 2000 database as binary BLOB. This is on a Windows 2003 Server. Just recently (a week ago) this website began to save the images it is displaying on the website as ASP pages in the Temporary Internet Files > IE.Content > Folder.
We have other websites where we use the exact same code and these do not save files on the server when they are displayed.
Here is the code to display the image:
Set rs = objConn.Execute( SQL )
Response.ContentType = "application/octet-stream"
Response.BinaryWrite rs("Product_Image")
SQL is the SQL String to get the image from database
When I add this code:
Response.ContentType = "image/jpeg"
The images still display on the website, but now are saved in the Temporary Internet Files folder as JPG's.
View Replies
View Related
PHP script is in script.php
Now, there's a page.asp
How can it be possible to include the script.php into page.asp (and make it work) without changing any extensions of files? SSI is supported, but i don't know how to use it.
View Replies
View Related
im trying to make a string and in that string have an include in to include a .asp page is this possible. Code:
myhtml = ""
myhtml = myhtml & "This Should Work "
myhtml = myhtml & " <!--#include file ="TESTR.asp"--> "
View Replies
View Related
I have different database connections that I use for DEV and PROD versions of our web app. I want to put the database connection string in one location so I only have to change it once when we push live.
So I put it in an include file and reference it in all my asp pages as:
<!--#include file="includes/db_conn.inc"-->
But this will not work with the global.asa page. How can I reference an include page from global.asa?
View Replies
View Related
I have a database full of info and I have display.asp which I want to display 10 items at a time so I have display.asp?page=1, display.asp?page=2, etc.
How do I go about actually filtering the database to only produce 10 results per page? I was trying to use:
results.Move 10
and things like that, but I'm not sure of the best way around this.
View Replies
View Related
i have many *.html* pages with the same header. i wanted to make one *header* file and put a link to that file in all html pages. So if i ever need to make changes in the header, i will need to edit only 1 file rather than all pages.
for *.asp* pages this code works fine:-
<!-- #include file="filename.inc" -->
but the same **include** does not work for *.html* pages. i guess there is some other way to put a link!
View Replies
View Related
I'm make a site that will contain an include statement that updates and gets data from the DB, but the text after the include doesn't display. When I don't have the include statement, the page displays perfectly.
Here's my statement:
<!-- #include file ="getData.asp" -->
Please let me know why it's not letting me display anything after my include statement, and what I can do to fix that.
View Replies
View Related
I have a asp project. One of the module, i wish to develop in .net, can i include it into my asp project?
View Replies
View Related
On the rest of the site, virtual includes work, but on one particular page, non-virtual includes work, but virtual ones do not... even though the include statements are copy and pasted from working pages, or are part of non-virtual includes that are included.*
I assume there is something in the page's code that is prohibiting virtual includes? Code:
View Replies
View Related
I've created a db field with Memo type, and I have stored some text with
carriage returns (no html) So the 3 words start on a differnt line. In
access this displays correctly ( each word starts on a new line).
However when I display these on a web page all the words appear on the same
line.
I need the words to be displayed on a seperate line.
View Replies
View Related
I can display information to a webpage from a database and handle the connections etc. My next task is a bit more complicated for myelf. Id like to have a page the pulls information from a record set and displays like this.
down one side
the container numbers
along the top
the products in the containers
the information in the middle would be the amount of product that came on that container.
Im just wondering how the best way to setup my database would be, and the best way to setup the asp webpage. (oh) nearly forgot, it has to repeat the information till all the records are finished but i guess that gos without saying.
View Replies
View Related
I need to solve this as part of a class project. It is designed to simply read a SQL table and display the data in the browser. But it will only show one record based on ID at a time. So if I have multiple records with the same ID such as page.asp?ID=9734, it would show all records using that ID in the browser. Code:
View Replies
View Related
I am trying to display some DateTime data from a SQL Server db using the standard recordset object...objRec("PostTime").value
It displays nothing.
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
Basically, we are working on a website where we want people to be able to see about 10minutes of our live streaming webcams on a once off basis. We are working on IP address sessions to do this, my question is however we want to have a single page with a countdown timer and the streaming video.
Now the timer is located on a local server but the streaming video is coming from a remote location, can we include use the remote asp page inside our local page. So far we keep getting the remote url displayed but not the media player.
View Replies
View Related