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