principally I'm a photographer, and in the absence of any image galleries I could make sense of I created my own asp pages in Dreamweaver displaying images from a path stored in a database. These can then be paged through, all done using server behaviours in Dreamweaver. However, because I wanted to include some text next to my images, again a field in the database, I have to scale them down. I would like to give the user the option to see a larger version of the image on display, preferably in a pop-up window that is then closed by the user before they continue scrolling through the images....
I have a client who has had a ASP site with an Access database for several years. It stores information for the used cars on his lot. I have stored text in the database that points to the location of the image for each record. Each record will have a thumb image that is supposed to display in a list of vehicles available then the user can select an item from this list and a new page displays with the information and the regular size image. So far everything has worked fine exept for the display of the images which are stored in a separate directory called veh-photos. All I get are image place holders. I am using Dreamweaver 2004 and and Access 2000 for the database.
This worked fine for enlarging my images until i put it onto a secure server, anyone know how i can fix it ??? just comes up with the standard box with a red cross in it .. and the url when i click image properties says: http://url/images/<%=request.querystring( which is only part of the code)
I've been creating a page in asp which displays records from an access database. I have limited the number of records displayed to 5 per page. If there are more than 5 records then the user can click next to view the next 5 and so on.
My Image field in the database has a data type of "text" and then i put the path to the image. However when i run my asp page it displays the path as text and im not so sure were im going wrong.
Here is a section of the code used to display the recordset.
For intRec=1 To rs.PageSize If Not rs.EOF Then Response.Write "<tr>" For Each fldF in rs.Fields Response.Write "<td>" & fldF.Value & "</td>" Next Response.Write "<tr>" rs.MoveNext End If Next Response.Write "</tbody></table><p>"
I have asp pages running from a MySQL database. I have placed a path in the required field (although not quite sure on the correct format). My asp page is just displaying the text path instead of the image. I'm using response.write. The Folder is called : images This folder is within : wwwrootworksimagesimage1.jpg How should I display this in the MySQL field ? I have the field as type: VarChar How do I display image1.jpg on my asp page ?
I've been trying to find information on displaying images from an Access database, however, the information that I've discovered does not clearly define the steps necessary to display the image with text. Can anyone provide a good reference or explain it to me (like a five-year-old) the complete steps to display an image from an Access database using ASP?
I'm trying to display an image which is stored in a database, followed by some other information, but I'm having some issues. It's stored in an access database as an OLE object. The code I've got right now is:
If Now() >= tstart1 OR Now() <= tend1 Then 'if tcurrent > tstart1 or tcurrent < tend1 then strLink1 = "/images/2.jpg" else strLink1 = "/images/1.jpg" end if
When I look at the page, the image never changes. It just always displays 2.jpg and not 1.jpg. I need help ASAP!
I want to provide random image on my asp page. the image will display according to products searched by user.
e.g.
if user enter pharma machine in search box, in result page the banner of pharma company will display. i.e. the banner of manufaturer/exporter of pharma machine will display.
dusring registration, comapny has to specify whether it wants banner or not. so if there is yes in banner and prodcuts match the search string then banner will display.
this is according to the product seaarched by user.
Im trying to display a default image on my asp page that pulls data from a sql server database but i can't get the default image to display. I get error messages saying type mismatch everytime on line 25... Code:
I have catalogue online but some of my items have no images. When there is no image I would like to show a note: response.write("There is no images at this time.") instead of the Icon of the image missing. I tried several ways but it ends up showing the response in all my records regardles if there is no image.
How would that be applied to the code below?
<% If (rsNeat.Fields.Item("product_image").Value) <> "" Then %> <a href="#" onclick="MM_openBrWindow('cat_images/<%=(rsNeat.Fields.Item("product_image_big").Value)%>','','width=450,height=450 ')"> <img src="cat_thumbnails/<%=(rsNeat.Fields.Item("product_image").Value)%>" alt="" border="0" /> </a><% End If %>
On my index page I have got an area for one product to be displayed randomly from the database. I have got it workign, but there is one problem i cant get my head around, here is the code so far:
' Initialize ASP RND() function Randomize() intRandomNumber = Int (1000*Rnd)+1
I am trying to display records ( text and images) from a database. I get the text displayed but the image is displayed as a large series of Asscii text.
Connect.open "DSN=Rentals" 'declare sql statement that will query the database query = "Select * FROM RentalTable WHERE Location LIKE '%" query = query & Replace(request("varLocation"), "'", "''") & "%'" query = query & " AND PropertyType = '" & Replace(request("varPropertyType"), "'", "''") query = query & "' ORDER BY DateAvailable" RS.Open query, Connect
do until RS.EOF %> <table width="75%" border="1"> <tr> <td><%=RS("Address")%></td> <td><%=RS("Location")%></td> <td <% Response.ContentType = "image/gif" Response.BinaryWrite(rs("Image1")) %> </td> </tr> </table>........
Looking for some good resources on coding an existing page to display images that are uploaded from a secured admin section. I.E. The only individual I want adding images to the page is the one I give permission to behind our Staff Section.
The Picture page is open to the public. Currently I have to create thumbnails, upload those then upload the full size image and then link it all on the pictures page. Looking for a way to let the end user do this themselves.
Just hoping to get some leads on how I can go about doing this. Do I need to save the images to a database, or can I just save them to a folder?
I've got a directory site for accommodation providers. I would like them to have the ability to display a couple of images on their details page. I can easily set it up so they upload images to my server and DB and are displayed etc etc... But I would rather have them just provide the links so that the pictures remain on their website etc....
The only issue I have is what happens if it is a bad link. By uploading to my server I can remove the risk of images not appearing, but by using a link, is there a way of 'testing' whether there is an image at the end of the link. Is there a script out there capable of verifying if an image file is where it should be for veiwing? My initial thought was to have a script that tests the image link for a width <> 0. On the page I would use an IF statement to allow displaying of the image if the image existed..... BUT HOW ?
I have been fighting with this for days now, and I can't seem to get it to work. Images are stored in an Access db as an OLE object. I have the following on my page Code:
i have a form where users leave their reviews that will be displayed on the home page. [sometimes the reviews are too long to be on the homepage, i was wondering if i can limit the size of the review display on the homepage.] but i still want to have the full review on my database.
Currently i have setup a form that takes the users information and drops the info into an access database and displays the info out the way i want it to.
After i take the info, i setup a seperate form to take in the users images of there choice that drops into a directory on my server, which works fine as well. What i am looking for though is a way to take the location of the image and drop that into another database or the same one so i can use it as a link when displaying the information.
I have two tables. ALPHA; fields id (a text field, that contains a string) image (a text field, that contains an url path for a file)
and BETA id (a text field, that contains a string) image (a field to insert an image)
I need to insert in BETA the information of field 'id' and the file that the field 'image' is pointing to. The url path of that file may me inside or outside my domain. For example, if the 'image' field says "pepe.com/image1.jpg", even if the ASP file is not in www.pepe.com domain.
I want to display a system maintenance notification on my webpage using a splash screen. I got the code for splash screen from Dynamic Drive and added it on my web page. Now here is my problem. I have created a table in my SQL database with these two fields, Flag and Description. I am trying to connect this splash screen to this table.
This is because-if the flag is set to 1 the splash screen will pop up and display the data in the description field on the splash screen and if it is set 0 the screen will not pop-up at all. Two things I am having trouble with-
1. Displaying the data on the splash screen. I made the connection to my db but can't get it to display it on my splash screen.
2. How to make the splash screen pop-up only if the Flag field is set to 1.
I am using an ASP page to display the information in a database.The last field in the table does not display properly if there are words in the last field.So,when its blank this code works:
If x.name="Reviewer_Comments" Then Response.Write("Reviewer Comments: "&x.value&"<br>") End If
When there are words in the field it fails to display and on a check it said that x.value was null when there are supposed to be words in it.the field is set as a memo field to accept the text that will be entered.When I set it to a Text field which only accepts 255 characters it worked fine.
i am trying to figure out the best way to display records. I have a page which pulls multiple data from mulitple tables in multiple queries. In order to get the page layout to put the records in the right spot i would like to be able to display each record invidually.
Is there a way to echo a record to a spot instead of using a datagrid? I know in php i can specify the database recordset and then echo the value for that particular record. Does asp have the equivalent to this?