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

 hiding a form in jsp

Print topic Send  topic

Author Message
John Reitano
Posted: 04/17/2002, 9:24 AM

Hi,

I'd like to hide a form conditionally in ASP. I've tried putting the following code in the Open event of my "Registration" form:

if (true) { // will change to more complex condition later
oTpl.setVar("FormRegistration", "");
return;
}

But this doesn't seem to work. Any ideas on what I'm doing wrong?

John Reitano
Posted: 04/17/2002, 9:55 AM

above should read: "hide a form conditionally in _JSP_"
Nicole
Posted: 04/18/2002, 1:34 AM

John,
quite strange.. Do you use JSP+Templates. This should work (it is tested):
boolean condition_to_hide= true;
if (condition_to_hide)
{
oTpl.setVar("FormFormName", "");
return;
}
John Reitano
Posted: 04/18/2002, 9:47 AM

Yes, it does indeed work. Don't know what I was doing wrong. Thanks, Nicole!

   


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.