Link to home
Start Free TrialLog in
Avatar of Aleks
AleksFlag for United States of America

asked on

ASP Javascript "IF" Syntax

This should be a simple one.

I am trying to add an IF statement using ASP/Javascript

<% if (Permissions.SecBillingedit)== "True" { %>

MY CODE

<% } // end Permissions.EOF && Permissions.BOF %>

Where permissions is the recordset and SecBillingedit is the field value
Avatar of Gary
Gary
Flag of Ireland image

ASP and JavaScript are separate entities - they cannot talk to each other per se.
ASP is executed on the server, sends the HTML the browser and that is that - ASP is finished with it
Js is used in the browser.
Avatar of Aleks

ASKER

Ok .. ASP .. whats the correct syntax for the above ?
I don't know because I have no idea what you are trying to do
Are you trying to add a js function into the page if the condition is true?
Is this classic ASP or .net?
ASKER CERTIFIED SOLUTION
Avatar of Robert Schutt
Robert Schutt
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You don't hear much about jscript.  Serverside javascript is starting to come in vogue. Too bad this was never developed more. But it does run slower compared to serverside vbscript for similar functions.  If you can do a function client side, it will run significantly faster.
Avatar of Aleks

ASKER

Thats ok, in the future will be turned to ASP/VBscript.