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 -> ASP

 How to make text field readonly dynamically?

Print topic Send  topic

Author Message
Bret Griswold
Posted: 05/02/2005, 10:32 AM

How would I make a field readonly dynamically? For example, if a person does not have Admin rights based on CCSecurityAccessCheck(GroupId) - I want to make the DateCreated field read-only. Otherwise it should be editable.

I have tried to create a custom template variable based on this thread
http://forums.yessoftware.com/posts.php?post_id=57124&s_keyword=readonly 
but was unable to make it work? Please advise. Thanks!

Using CodeCharge Studio 2.3 / ASP
Nicole

Posts: 586
Posted: 05/03/2005, 5:26 AM

Bret,
Relevant ASP code would be
  
If condition_to_make_readonly then  
HTMLTemplate.SetVar "@var_name", "readonly"  
End if  
BTW, it’d be good for you to read this knowledge base article, that provides basic knowledge on CCS template technology http://support.codecharge.com/kb_article.asp?article_id=56

_________________
Regards,
Nicole
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.

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.