CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Hide - show an Image link

Print topic Send  topic

Author Message
mtsoulis

Posts: 12
Posted: 07/27/2016, 9:56 AM

In my grid I have the the textbox1 and the imagelink1
I wanna keep hiden the imagelink1 if textbox1=0
Any help?
Thanks in advance!


_________________
Miltos-Greece
View profile  Send private message
saseow

Posts: 727
Posted: 07/27/2016, 10:18 AM

Put a Panel around the image link and in beforeshow code test for Textbox value and if it is 0 then hide the panel otherwise show the panel.
if (Textbox1->GetValue() == 0)
{
Panel1->Visible = false;
}
else
{
Panel1->Visible = true;
}
View profile  Send private message
eratech


Posts: 513
Posted: 07/31/2016, 7:23 AM

You should also be able to do without the Panel. Similar code in the link BeforeShow event. Remember to change the Visible property in the Properties window or it might override your setting. Use Dynamic.

Cheers

Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
mtsoulis

Posts: 12
Posted: 07/31/2016, 12:12 PM

it works!!
Thank you!!!
_________________
Miltos-Greece
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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