Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Type mismatch: 'Session'

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

Why the below vbscript function giving me error
Error: Type mismatch: 'Session'
<HTML>
<BODY>

<script language=&quot;VBScript&quot; >
sub vbFunction()
dim iLoop
dim Buffer
for iLoop = 0 to document.form1.elements.length - 1
if document.form1.elements(iLoop).checked then
Buffer = Buffer & &quot;,&quot; & document.form1.elements(iLoop).name
end if
next

Session(&quot;Datasets&quot;) = Buffer

end sub
</script>
:
:
<FORM NAME=&quot;FORM1&quot; METHOD=&quot;POST&quot;>

<%
:
%>

</FORM>

</BODY>
</HTML>
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top