Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 26th, 2003, 09:19 PM
Authorized User
 
Join Date: Jun 2003
Location: Melbourne, Victoria, Australia.
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tdaustin Send a message via Yahoo to tdaustin
Default How to Stop bad images being display

Hi Everyone,

A problem that i have is display images for a recordset.

Eg.
Employee Details

Name:
Position
Image:

My current code, upload the image (aspsmartupload), writes file to database and is displayed in template format. Everything is fine, how ever, If an image isn't attached a default image say "no image availble"

How do get this default image to appear if there is a problem with the image or broken link ( when you recieve red cross)

You help would be much appreciated

TDA
__________________
TDA
Reply With Quote
  #2 (permalink)  
Old June 27th, 2003, 10:01 AM
Authorized User
 
Join Date: Jun 2003
Location: Dublin, , Ireland.
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<%If rsName.Fields.Item("Picture").Value <> "" Then %>
         <input type="image" src ="<%=(rsName.Fields.Item("Picture").Value)%>" border="0" alt="<%=( rsName.Fields.Item("ProductName").Value)%>"
         <% else %>
         <input type="image" src ="noimage.gif" border="0" alt="<%=( rsProducts.Fields.Item("ProductName").Value)%>"
         <%End If %>
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
display images from DB shs BOOK: Beginning ASP.NET 1.0 11 February 21st, 2006 02:21 AM
is it possible to display GIF Images uneek_18 Crystal Reports 0 January 16th, 2006 08:03 AM
How To Display Images in DataList abdul_owiusa General .NET 4 June 3rd, 2005 11:49 AM
Opera Browser bad display of web page made with Dr karib Dreamweaver (all versions) 15 July 11th, 2004 05:18 AM
how to display images ? shirley65 C# 2 May 31st, 2004 08:12 AM



All times are GMT -4. The time now is 04:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.