Aleks
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.SecBillingedi t)== "True" { %>
MY CODE
<% } // end Permissions.EOF && Permissions.BOF %>
Where permissions is the recordset and SecBillingedit is the field value
I am trying to add an IF statement using ASP/Javascript
<% if (Permissions.SecBillingedi
MY CODE
<% } // end Permissions.EOF && Permissions.BOF %>
Where permissions is the recordset and SecBillingedit is the field value
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
Thats ok, in the future will be turned to ASP/VBscript.
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.