CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 display two different images in grid

Print topic Send  topic

Author Message
tulnetdotcom

Posts: 26
Posted: 09/17/2004, 4:45 AM

Hi,

My application is based on MSaccess,IIS and ASP.
I have database for admin rights.
srno, username, grantdate, expirydate, status

i want to display two different images in grid according to the value in status field.
If Status = Active image1 should be displayed
If Status = Expired image2 should be displayed.

Please help me.

Thanks
View profile  Send private message
dataobjx


Posts: 181
Posted: 09/17/2004, 5:45 AM

The first issue of CCS Developer Magazine demonstrates this technique - and this issue is FREE.

To download your FREE issue of CCS Developer Magazine, go to http://www.dataobjx.net and register - it's free and easy.

Then click on the CCS Developer Magazine link and download the current issue and source code.
_________________
www.DataObjx.net
www.mydigitalapps.com
View profile  Send private message
tulnetdotcom

Posts: 26
Posted: 09/17/2004, 7:35 AM

Thanks for information.

But could not find solution for my problem.

Please help me.

Thanks
View profile  Send private message
GeorgeS

Posts: 206
Posted: 09/18/2004, 2:06 PM

I think that this should work for True/False status field:

Dim status
status=CCDLookUp("status","tblUsers","user_id=" & CCGetUserID(), DByourconnection)

IF status THEN
GridName.image.Value = "image_1.jpg"
ELSE
GridName.image.Value = "image_2.jpg"
END IF


_________________
GeorgeS
View profile  Send private message
tulnetdotcom

Posts: 26
Posted: 09/21/2004, 1:47 AM

Thanks GeorgeS,
It worked for me.

Thanks for the solution.
View profile  Send private message

Add new topic Subscribe to topic   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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