Whing Dela Cruz
asked on
Call a function within the ASP code
Hi Experts, I want to call the Function after the else of the ASP code as the code shown below. Please help me how to achieve this as this code is not working... Thanks!
<%
If Session("Allow") = "" Then
Session("Allow") = "Big E"
else
call myFunction()
End If
%>
<%
If Session("Allow") = "" Then
Session("Allow") = "Big E"
else
call myFunction()
End If
%>
Have you verified that Session("Allow") has a value? What "is not working"? As long as the session variable has a value, your code will work. Maybe if you can explain what exactly you're trying to do would help, as long as the code in full, that way we can see the context of what you're trying to do.
ASKER
Hi Monty, The only problem here is the calling of "myFunction()" which i wanted to call the myfunction once the "Allow" has a value. The code is working except after the condition else. Sorry for not explaining well. Thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Monty, I accepted that i might miss lead my question. So, I decided to close this and reconstruct my question to make the experts understands.. Thank you!