Forum Moderators: open
Regards
Kristian
Showing a broken image icon is standard behaviour for IE, and as far as I know Firefox used to do this too, but doesn't any more for some reason.
You should avoid outputting an <img> element if you do not have a corresponding image to display. I've never used dreamweaver, so I don't know what the 'show region if recordset is not empty' does exactly, but see if you can change your code so that it only outputs HTML for an <img> when there is an image.
If you're not sure of how to go about this, you can post the corresponding code section for this, and we'll se what is possible.
ps. We're not allowed to post URLs to our own websites here, so it will most likely be removed soom
thank you for your advise about the website thing, wont happen again.. :)
here is my code to output my image through my database:
<a href="post.asp?id=<%=(rsPost.Fields.Item("intPostID").Value)%>">
<% If Not rsPost.EOF Or Not rsPost.BOF Then %>
<img src="images/<%=(rsPost.Fields.Item("txtImageSmall").Value)%>" border="0" />
<% End If ' end Not rsPost.EOF Or NOT rsPost.BOF %>
This should (hopefully) do the trick:
<a href="post.asp?id=<%=(rsPost.Fields.Item("intPostID").Value)%>">
<% If Not rsPost.EOF Or Not rsPost.BOF Then %>
<% If Not rsPost.Fields.Item("txtImageSmall").Value & "" = "" %>
<img src="images/<%=(rsPost.Fields.Item("txtImageSmall").Value)%>" border="0" />
<% End If %>
<% End If ' end Not rsPost.EOF Or NOT rsPost.BOF %>
Here it is again:
<a href="post.asp?id=<%=(rsPost.Fields.Item("intPostID").Value)%>">
<% If Not rsPost.EOF Or Not rsPost.BOF Then %>
<% If Not rsPost.Fields.Item("txtImageSmall").Value & "" = "" Then %>
<img src="images/<%=(rsPost.Fields.Item("txtImageSmall").Value)%>" border="0" />
<% End If %>
<% End If ' end Not rsPost.EOF Or NOT rsPost.BOF %>
reason why i started with asp classic was i found a really good video tutorial. got me started perfect
Although Classic ASP is fine, it is a dated technology that will no longer receive new features/updates etc.
If you are just starting you will be much better off learning ASP.Net, a true object oriented programming environment running on the .Net framework.
For videos and tutorials you can't beat the www.asp.net [asp.net] website. They also have some great Starter Kits [asp.net] to help you learn the basics. (you can also use these starter kits as a basis for your own websites/projects)
ANd for a free development environment you can get free versions of Visual Studio here:
http://www.microsoft.com/exPress/ [microsoft.com]