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
|
 |
 |
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 |
 |
 |
Joe
|
| Posted: 03/23/2005, 1:29 PM |
|
your the man peter!!!. Works perfectly. Thanks
|
|
|
 |