Hi,
Why the below vbscript function giving me error
Error: Type mismatch: 'Session'
<HTML>
<BODY>
<script language="VBScript" >
sub vbFunction()
dim iLoop
dim Buffer
for iLoop = 0 to document.form1.elements.length - 1
if document.form1.elements(iLoop).checked then
Buffer = Buffer & "," & document.form1.elements(iLoop).name
end if
next
Session("Datasets" = Buffer
end sub
</script>
:
:
<FORM NAME="FORM1" METHOD="POST">
<%
:
%>
</FORM>
</BODY>
</HTML>
[sig][/sig]
Why the below vbscript function giving me error
Error: Type mismatch: 'Session'
<HTML>
<BODY>
<script language="VBScript" >
sub vbFunction()
dim iLoop
dim Buffer
for iLoop = 0 to document.form1.elements.length - 1
if document.form1.elements(iLoop).checked then
Buffer = Buffer & "," & document.form1.elements(iLoop).name
end if
next
Session("Datasets" = Buffer
end sub
</script>
:
:
<FORM NAME="FORM1" METHOD="POST">
<%
:
%>
</FORM>
</BODY>
</HTML>
[sig][/sig]