Ricardo Silva
|
| Posted: 01/06/2004, 6:27 PM |
|
Hi!
I need to hide one CCS editabled-grid-form one the following circunstances:
1. The value of variable, obtained from the URL, is equal to "-1" (Ex.:
page.asp?variable=-1);
2. The value of variable, obtained from the URL, is equal to "-2" (Ex.:
page.asp?variable=-2);
3. The variable doesn't appear in the URL (Ex.: page.asp).
I have no problem defining the first 2 conditions by using the
"editable-grid-form.visible = false" command between the IF and END IF.
However, I don't know how to do and if it is possible to do, the 3rd
condition... So, can anyone please help me on this?
If a certain variable isn't present in the URL, how can I turn off the
visibility of am editable-grid-form?
Thanks in advance.
Best regards,
ricardo
|
|
|
 |
Edd
Posts: 547
|
| Posted: 01/06/2004, 3:49 AM |
|
What about testing if the the variable is EMPTY?
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
BlinkyBill
Posts: 86
|
| Posted: 01/06/2004, 7:32 PM |
|
Ricardo,
Are you using using CCGetParam to read the querystring rather than request.querytstring, if so this will work:
If CCGetParam("variable", -1) is < 0 then
editable-grid-form.visible = false
End If
Assumption: -1 and -2 are the only non 0 values. CCGetParam two arguments, 1st: the variable you searching, 2nd a default value if the variable doesn't exist.
|
 |
 |
wefewf
|
| Posted: 05/28/2004, 7:04 AM |
|
|
|
|
 |
erwer
|
| Posted: 05/28/2004, 7:05 AM |
|
    Quote :reterft
|
|
|
 |
|