Actually, I tried to store a session variable so I can call it from another
asp page.
it worked when I used <% session("var")="Test")%>, but why can't I set it
using function?
SK
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:bqnnrd$q3c35@kcweb01.netnews.att.com...
> "Sing" <kingdavong.s.TakeThisOut@duraauto.com> wrote in message
> news:upLMaLouDHA.640@tk2msftngp13.phx.gbl...
> > Can anyone help me with this vbscript? Everytime I call this function,
I
> > kept getting
> >
> > Line: xxx
> > Char: xx
> > Error: Type mismatch: 'Session'
> > Code: 0
<font color=green> > > URL: <a style='text-decoration: underline;' href="http://xxxx.xxxx.com</font" target="_blank">http://xxxx.xxxx.com</font</a>>
> >
> > Here's my VBScript function.
> >
> > <script LANGUAGE="VBScript">
> > Sub mToggle(t)
> > Session("tMenu")=t
> > End Sub
> > </script>
>
> You're calling a server object (session) in client-side code ... what are
> you trying to do?
>
> --
> Tom Kaminski IIS MVP
> <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running
IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
>
>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Type mismatch: 'Session' error