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

 

What's wrong with the code

 
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 >> What's wrong with the code
Page: [1]
 
Mvu

 

Posts: 108
From: Brussels Belgium
Status: offline

 
What's wrong with the code - 9/29/2001 20:34:00   
Hi,

Could someone tell me what's wrong with the following code?
<% IF FP_FieldVal(fp_rs,"DESCRIPTION FR") = "Aucune information communiquée" then Response.Write "<%FP_FieldVal(fp_rs,"DESCRIPTION NL")%>" else Response.Write ""<%FP_FieldVal(fp_rs,"DESCRIPTION FR")%>"%>


What I try to do is return the value of DESCRIPTION NL if the value of DESCRIPTION FR = "Aucune information communiquée", else return the value of DESCRIPTION FR

------------------
Marc Van Uytvanck
Brussels

ginnie

 

Posts: 527
From: St. Louis MO USA
Status: offline

 
RE: What's wrong with the code - 9/29/2001 23:54:00   
Try this:

<% IF FP_FieldVal(fp_rs,"DESCRIPTION FR") = "Aucune information communiquée" then Response.Write FP_FieldVal(fp_rs,"DESCRIPTION NL") else
Response.Write FP_FieldVal(fp_rs,"DESCRIPTION FR")
%>

*Hmmmm ... there should be a line break after "then".

Also, you should name your fields using an underscore instead of a space, or you're looking for problems.

[This message has been edited by ginnie (edited 09-29-2001).]


(in reply to Mvu)
Mvu

 

Posts: 108
From: Brussels Belgium
Status: offline

 
RE: What's wrong with the code - 9/30/2001 20:46:00   
OK , I put the code this way: (with a break after then and else)

<% IF FP_FieldVal(fp_rs,"DESCRIPTION_FR") = "Aucune information communiquée" then
Response.Write FP_FieldVal(fp_rs,"DESCRIPTION_NL") else
Response.Write FP_FieldVal(fp_rs,"DESCRIPTION_FR")
%>

The change of code is rejected by Frontpage. It says: the content of this page has been changed. Those modifications will be crushed while saving the page.

For your information, the code lays inside two webbot components.
The first one starting with:
<!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="blabla..." --!>

The next one
!--webbot bot="DatabaseRegionEnd" i-CheckSum="65064" endspan -->

What shoul I do now ?

------------------
Marc Van Uytvanck
Brussels


(in reply to Mvu)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> What's wrong with the code
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