Re: Working with Sessions for functions
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Mon, 18 Jun 2007 19:14:15 -0400
Chen Leikehmacher wrote:
I have a problem.<%
I'm having on my site a Session by the name "UserLogon"
which will either have values "true" or "false".
I want to use that information with a function so I will be able to
make an image be visible or not.
However i don't think that it is possible to have asp codes inside
<script>. what should i do?
dim display
if cbool(session("UserLogon")) then
display="inline"
else
display="none"
end if
%>
....
<img style="display:<%=display%>" ...
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- References:
- Working with Sessions for functions
- From: Chen Leikehmacher
- Working with Sessions for functions
- Prev by Date: Re: Commenting in Sql
- Next by Date: Working with Sessions for functions
- Previous by thread: Working with Sessions for functions
- Index(es):
Relevant Pages
|