CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Help ! ASP 3.0 with templates issue

Print topic Send  topic

Author Message
Hicham Bisbis
Posted: 06/16/2002, 12:15 PM

To all code wizards out there,

I have a search page that displays results in a grid. One of the field
within the grid is a Boolean ( Yes/ No). I would like to change the color of
the font to red for that row whenever the value of that field is "NO". This
used to be easy with CC and ASP without templates, but with CCS ASP with
templates I am Stuck ! Please help !

Hicham

Geert Larsen
Posted: 06/17/2002, 3:06 AM

From the tutorial - think it might help

http://www.codecharge.com/studio/tutorial/1_0_5/ccs_tutorial-Programm.html

/ geert

"Hicham Bisbis" <hbisbis@laptv.com> wrote in message
news:aeio4m$dps$1@news.codecharge.com...
> To all code wizards out there,
>
> I have a search page that displays results in a grid. One of the field
> within the grid is a Boolean ( Yes/ No). I would like to change the color
of
> the font to red for that row whenever the value of that field is "NO".
This
> used to be easy with CC and ASP without templates, but with CCS ASP with
> templates I am Stuck ! Please help !
>
> Hicham
>
>

Hicham Bisbis
Posted: 06/19/2002, 10:02 AM

Thanks. That seems to be the way to go except that it doesn't work. I have a
table "TID" with one of the Field being "Active" ( a yes/No type). I
inserted a before show code just like in the tutorial and it goes like this
:

Function TID_Active_BeforeShow() 'TID_Active_BeforeShow @35-9BB718BC

'Custom Code @52-73254650
' -------------------------
if TID.Recordset.Fields("Active") = "No" then
TID.Active.Value = "<font color=""blue"">" & TID.Active.Value & "</font>"
end if

' -------------------------
'End Custom Code


This is supposed to change the font to blue before showing the grid. Here is
the output on the grid, look at the second record :


109760075447 2823636 CCPAL Yes Adelia Maria PAS3 4/25/2001
Diego Normal

632760014410 1514548 CCPAL <font color="blue">No</font> Adelia
Marķa PAS3 9/9/1999 Normal




Any ideas will be welcomed.

Hicham


"Geert Larsen" <geertl@image.dk> wrote in message
news:aekcbv$fvt$1@news.codecharge.com...
> From the tutorial - think it might help
>
> http://www.codecharge.com/studio/tutorial/1_0_5/ccs_tutorial-Programm.html
>
> / geert
>
> "Hicham Bisbis" <hbisbis@laptv.com> wrote in message
>news:aeio4m$dps$1@news.codecharge.com...
> > To all code wizards out there,
> >
> > I have a search page that displays results in a grid. One of the field
> > within the grid is a Boolean ( Yes/ No). I would like to change the
color
> of
> > the font to red for that row whenever the value of that field is "NO".
> This
> > used to be easy with CC and ASP without templates, but with CCS ASP with
> > templates I am Stuck ! Please help !
> >
> > Hicham
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.