CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Dynamically Disable Input Controls

Print topic Send  topic

Author Message
Suntower

Posts: 225
Posted: 08/30/2006, 1:23 PM

I've read through the other topics on this here and can't figure out how to do it in ASP.

Walter posted a technique for modifying <A> controls by injecting a {Label} inside the <a> but this won't work in a control. And I can't figure out how to do it by modifying the 'Value' (which makes sense.)

So I've been doing it in JS.

Is it doable -just- in ASP. I'm trying like crazy to do as little in JS as possible so that when problems occur I have fewer places to troubleshoot.

TIA,

---JC

PS: This is -definitely- an 'Action' that should be -standard- with CCS.
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/30/2006, 3:08 PM

JC

In the CCS helpfile search term: disabled
Second topic is HTML Template variable (ASP)
In the online docs : http://docs.codecharge.com/studio3/html/Components/Meth...SetVar.html?toc

The SetVar is what you need.

Walter
Quote :
Examples
The example below shows an extract from an HTML template file with a template variable called user_state.

	<input name="user" {user_state}> 
The following programming code uses the SetVar method of the HTMLTemplate object to set the value of the user_state template variable. When the page is rendered for the browser, the user_state template variable will be replaced by the value disabled and as a result of this, the input control will appear disabled.

	HTMLTemplate.SetVar "@user_state","disabled" 

[from the wealthy documentation using my neuotic search engine]



See also


_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Suntower

Posts: 225
Posted: 08/30/2006, 3:31 PM

Fabulous as per usual. I've concluded that you and I search differently. I confess I've grown to -loathe- the CCS OLH and I usually go to this forum to search first.

Clearly, I have it backwards.

It's that religious thing. Because I write Windows apps and literally every day I 'disable' or make 'readonly' or otherwise modify controls, I just -assume- that there is a little contraption to change all this stuff that is PROMINENTLY DISPLAYED in the CCS IDE.

Your patience is greatly appreciated. If nothing else, you're helping to build what (at least to -me-) is a valuable on-line reference for others. And I'm sure that gives you a real warm glow. :-D

Thanks Again,

---RSM


_________________
---On a campaign for more examples and better docs!
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.

MS Access to Web

Convert MS Access to Web.
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.