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

 Hide Image Link based on Value

Print topic Send  topic

Author Message
Joe
Posted: 03/23/2005, 10:09 AM

This is what I have so far, But it does not work. This Image link is inside of a grid. This one is based not based on session but the value of the Field named "SCAC". I want it to show th eimage link if the Scac label = UPSI.
   
ProDetail.Label3.Visible = ProDetail.SCAC.value = "UPSI"  

I have this, and it does work. This one is not inside of grid. This one is based on session.
   
Link2.Visible = (Session("SCAC") = "ATSC")  

.ASP
Thanks
joe
Diesel

Posts: 43
Posted: 03/23/2005, 11:43 AM

Hi there

I'm not to sure what you want to do....
For the ImageLink control the parameter it uses is:

ImageLink.Page = "http://www.codecharge.com"

Therefore if you want no link to be visible you can do something like this:

If Session("SCAC") = "ATSC" Then
ImageLink.Page = "http://www.codecharge.com"
Else
ImageLink.Page = ""
End If

Regards
Diesel

View profile  Send private message
Joe
Posted: 03/23/2005, 11:55 AM

I have and Imgae link in a grid, I only want it to display if the value of the field SCAC in the grid(PRODETAIL) says UPSI.
peterr


Posts: 5971
Posted: 03/23/2005, 12:05 PM

Maybe the code is correct, but you also need to modify the HTML to allow the link to be hidden.
Please right-click on that link in Design mode, then select "Edit Link xyz Layout", then select "Extended HTML". This will add special HTML comments around the link that should make it "hideable".
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Joe
Posted: 03/23/2005, 1:29 PM

your the man peter!!!. Works perfectly. Thanks

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.

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.