Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTML if statement
Message
De
05/12/2007 17:13:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/12/2007 16:51:23
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
01273455
Message ID:
01273460
Vues:
10
>Hello all
>I just started on an old VFP code using West Wind and Visual studio (to this WWC layman it seems a little contrived. But it works... somehow...).
>
>Anyway is there an "IF" statement in HTML. I've never seen it, but I wish I had it now.
>I'm looking for something like this.
>
>IF <MyCondition>
> <tr>
>   <td align="center" style="height: 26px">
>     <ww:wwWebButton ID="btnOptOut" runat="server" Width="80" Text="Opt Out" Click="btnOptOut_Click"/>
>            </td>
>  </tr>
>Else
> <tr>
>   <td align="center" style="height: 26px">
>     <ww:wwWebButton ID="btnOptOut" runat="server" Width="80" Text="Opt In" Click="btnOptOut_Click"/>
>            </td>
>  </tr>
>
>End if
>
>
>I need the HTML version of the IF statment, if it exist.
>
>TIA.

Sam,
I think it was not the right way to do it but when I did my single WWC application I wrote all HTML in code. Thus I had access to all VFP commands. Something like:

set textmerge to memvar m.lcOutput noshow
set textmerge on
if ...
\ ...
else
\ ...
endif
set textmerge to
set textmerge off

Response.Write(m.lcOutput) && check FastWrite,addheader and such

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform