|
-
Problem with displaying image
Hi!
When I use this code:
<% if rs("pic") <> "" then %>
<img src="../bilder/artiklar/<%= rs("pic") %>"><br>
<% else %>
<input type="file" name="pic" size="30" style="width: 425px;">
<% end if %>
....no image is displayed; I get a broken <img> tag.
But when I comment the If-statement:
<% 'if rs("pic") <> "" then %>
<img src="../bilder/artiklar/<%= rs("pic") %>"><br>
<% else %>
'<input type="file" name="pic" size="30" style="width: 425px;">
<% end if %>
The image is suddenly displayed.
It seems like I can only access rs("pic") once, and after that
is becomes invalid.
Has anyone else experienced the before?
/John
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks