Groups | Blog | Home
all groups > inetserver asp db > june 2007 >

inetserver asp db : Working with Sessions for functions



Bob Barrows [MVP]
6/18/2007 7:14:15 PM
[quoted text, click to view]
<%
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"

Chen Leikehmacher
6/19/2007 2:05:10 AM
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?

Adrienne Boswell
6/20/2007 4:39:24 AM
Gazing into my crystal ball I observed "Chen Leikehmacher"
<chen.leikehmacher@gmail.com> writing in
news:u8Shh0fsHHA.4364@TK2MSFTNGP06.phx.gbl:

[quoted text, click to view]

<% dim mymessage
mymessage = "Hello world"
%>
<script type="text/javascript">
alert("<%=mymessage%>";)
</script>


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
AddThis Social Bookmark Button