navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

If then else help needed

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> If then else help needed
Page: [1]
 
99bird

 

Posts: 15
Joined: 3/19/2004
Status: offline

 
If then else help needed - 8/26/2004 11:32:38   
I have used the following for blank lines in a table. This way based on the information my table is collapsible.

<% If Len(FP_Field(fp_rs,"design_number2")) > 0 Then %>
<%=FP_FieldVal(fp_rs,"design_number2")%><br>
<% End If %>

My question is? Can the same be done for images?

I am trying to use the following,

<%IF (FP_FieldVal(fp_rs,"finish10")) = "finish/blank.jpg" then%>
<% FP_FieldLink(fp_rs,"finish10") = "" %>
<%else%>
<img border="0" src="<%=FP_FieldLink(fp_rs,"finish10")%>">
<%End if%>

but I keep getting the following error;

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'FP_field'

Do I need to remove the reference to finish/blank and leave the field blank?

What I am trying to accomplish is that if there is no reference to an image in the table, that no field shows in the table and leaves a blank space as with the "blank line statement" listed at the start of this post. But if there a reference to a image. I want to show the image and fill that column in the table.

I hope that I haven't confused everyone as I am.

You help and assistance is greatly appreciated.
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: If then else help needed - 8/26/2004 11:40:54   
quote:

<%IF (FP_FieldVal(fp_rs,"finish10")) = "finish/blank.jpg" then%>
<% FP_FieldLink(fp_rs,"finish10") = "" %>
<%else%>
<img border="0" src="<%=FP_FieldLink(fp_rs,"finish10")%>">
<%End if%>


Maybe like this?

<%
IF (FP_FieldVal(fp_rs,"finish10")) = "finish/blank.jpg" then
response.write ""
else
%>
<img border="0" src="<%=FP_FieldLink(fp_rs,"finish10")%>">
<%
end if
%>

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to 99bird)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> If then else help needed
Page: [1]
Jump to: 1





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