CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 disabling a control

Print topic Send  topic

Author Message
fmb
Posted: 11/02/2003, 12:38 PM

In CCS is it possible to disable controls such as a textbox programmatically. For example, if atextbox called "Status" has a value of "billed", I want it to be disabled. I'm programming in ASP. I see a visible property in the documentation, but not a property to make it read only.
ryan
Posted: 11/02/2003, 3:25 PM

can you instead add a READONLY/DISABLED on the textbox

since u r custom programming can you try

'on before show event of textbox on the grid
dim ifreadonly
IF urformname.Status.value = "billed" THEN
ifreadonly = "READONLY"
ELSE
ifreadonly = ""
END IF
HTMLTemplate.Setvar "@ifreadonly",ifreadonly

Then on ur html you assign ur template variable 'ifreadonly'

<input size="30" maxlength="50" value="{StatusValue}" {ifreadonly} />

:)
fmb
Posted: 11/02/2003, 4:59 PM

thanks!!!!!

   


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.