|
| |
|
|
Lookup13
Posts: 25 Joined: 8/25/2003 Status: offline
|
How do you link a image from a SQL - 5/7/2009 14:32:48
I am using Expression , I have a simple datebase SQL called Iventory I created webpage and link up to data base all data comes up fine .. I have a image of each product in the Image file folder in the date base I gave complete address to it. Ex: www.xxxx.com/images I selected Image file to pulled data from ... How do I make it link up on the webpage ?
|
|
|
|
Lookup13
Posts: 25 Joined: 8/25/2003 Status: offline
|
RE: How do you link a image from a SQL - 5/8/2009 9:01:35
That didnt work... Lets start over have a database called Inventory Use Expression Web(new Front page) created ASPX Page. Next I selected dataview and connectted with Inventory sql all is good , all columns come up on preview. Except Images and it displays a red X. In sql in Images E:\ images\picture.jpeg (link to folder is this right? What should the settings be in Data View image?
|
|
|
|
Giomanach
Posts: 6190 Joined: 11/19/2003 From: England Status: offline
|
RE: How do you link a image from a SQL - 5/8/2009 10:44:46
You want to run the SQL statement to link to the web rather than a drive. Or just get it to pull the image name from the database, so your links look like so: <img src="images/<% =rs("imagepath") %>" alt="" /> Being a windows environment, you will be telling the server to look on the HDD title E: and then in the images directory rather than looking in the web folders.
< Message edited by Giomanach -- 5/8/2009 10:50:38 >
_____________________________
|
|
|
|
Lookup13
Posts: 25 Joined: 8/25/2003 Status: offline
|
RE: How do you link a image from a SQL - 5/8/2009 15:49:35
I enter this in Image in SQL <img src="images/<% =rs("www.abc.com\images\123456.jpeg") %>" alt="" /> I still get Red X I guess I am really missing it ?!!
|
|
|
|
Lookup13
Posts: 25 Joined: 8/25/2003 Status: offline
|
RE: How do you link a image from a SQL - 5/8/2009 16:06:43
Change slashes around still no luck ? <img src="images/<% =rs("www.abc.com/images/123456.jpeg") %>" alt="" />
|
|
|
|
Lookup13
Posts: 25 Joined: 8/25/2003 Status: offline
|
RE: How do you link a image from a SQL - 5/8/2009 16:45:16
quote:
How about: <img src="http://<% =rs("www.abc.com/images/123456.jpeg") %>" alt="" /> or <img src="<% =rs("/images/123456.jpeg") %>" alt="" /> _____________________________ Little Blue Plane Web Design | Land Rover project I tried it both ways no luck just shows : How about: <img src="http://<% =rs("www.abc.com/images/123456.jpeg") %>" alt="" /> or <img src="<% =rs("/images/123456.jpeg") %>" alt="" /> ____________________________ What am I doing wrong ?
|
|
|
|
Lookup13
Posts: 25 Joined: 8/25/2003 Status: offline
|
RE: How do you link a image from a SQL - 5/8/2009 18:56:36
I loade the site to a server , Same results I loaded the <img src="<% =rs("/image/123456.jpeg") %>" alt="" /> in the SQL file under image , for each product is this correct ? Then on webpage , on image click edit and used imagelinkfield and select the sql column image So far is this correct ? www.fixedpoint.com/test.aspx
|
|
|
|
Lookup13
Posts: 25 Joined: 8/25/2003 Status: offline
|
RE: How do you link a image from a SQL - 5/10/2009 14:23:27
What is written to the page when you treat the database column as plain text output? Output is Images/33445.jpeg What is the code you use to write that text? Experssion ASPX Data connection SQL Select All from Inventory <img src="<% =rs("ImageField") %>" alt="" /> I tried enter the code aspx doesnt like it I inserted a reg picture then , cut code out and pasted this in its place , no luck ....
|
|
|
|
Lookup13
Posts: 25 Joined: 8/25/2003 Status: offline
|
RE: How do you link a image from a SQL - 5/11/2009 14:08:13
Spooky , you fixed it ?! I chang a few things and I guessed it fixed it self over night ?!! Thanks for you help ,
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|