Aleks
asked on
IF display not working
I am using classic ASP / javascript
I have the following lines:
<% if ((Permissions.SecBillinged it)== "True") { %>
VALUE
<% } // end Permissions.EOF && Permissions.BOF %>
It should display the value when 'secbillingedit' is equal to "True", but it doesnt. What is wrong ?
If I display the value of the field in on my screen I get "True" ... so not sure what may be wrong.
I have the following lines:
<% if ((Permissions.SecBillinged
VALUE
<% } // end Permissions.EOF && Permissions.BOF %>
It should display the value when 'secbillingedit' is equal to "True", but it doesnt. What is wrong ?
If I display the value of the field in on my screen I get "True" ... so not sure what may be wrong.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The <% and %> should be around the entire if statement, not each line.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Did not work. Nothing is displayed. It shoud compare and make sure the boolean value is '1' .. in the database it shows '1', but when displayed on the ASP page it shows "True"
ASKER
The logic is correct, the 'value' or code I want to display is still not being displayed.
This is the complete code :
<% if ((Permissions.SecBillinged it)== "1") { %>
<a href="BillingItemsEdit.asp ?ItemId=<% =(BillingI tems.Field s.Item("Id ").Value)% >&caseid=< %=(Casesjo in.Fields. Item("Id") .Value)%>" ><img src="../../Images/iedit.gi f" width="16" height="16" border="0"></a>
<% } // end Permissions.EOF && Permissions.BOF %>
I have tried and doesnt work with:
<% if ((Permissions.SecBillinged it)== "1") { %>
<% if ((Permissions.SecBillinged it)== "True") { %>
<% if ((Permissions.SecBillinged it)== '1') { %>
<% if ((Permissions.SecBillinged it)== 'True') { %>
This is the complete code :
<% if ((Permissions.SecBillinged
<a href="BillingItemsEdit.asp
<% } // end Permissions.EOF && Permissions.BOF %>
I have tried and doesnt work with:
<% if ((Permissions.SecBillinged
<% if ((Permissions.SecBillinged
<% if ((Permissions.SecBillinged
<% if ((Permissions.SecBillinged
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tried that, no go. Nothing is displayed.
ASKER
Close enough, this worked:
<% if (Permissions('SecBillinged it')== "1") { %>
<% if (Permissions('SecBillinged
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
excellent! glad you got it working :)
ASKER
:)