Hi to all
am new to asp and am parcipating a project on asp in our company... here i got one prob that passing the parameter thru onclick.. i tried a lot but nothing materialize..
i have 5 buttons here.. for all buttons same function that i have to submit the form iprev.. here my prob is when i save parameter into a session variable its showing "type mismatch" when i call the function.. here i given my codes and function nooooo sub.. plz if u can guide me plzzzzzz
<input type="button" value="Upload" name="B1" onClick='uploadpicture("img1")'><br><br>
<input type="button" value="Upload" name="B2" onClick='uploadpicture("img2")'><br><br>
<input type="button" value="Upload" name="B3" onClick='uploadpicture("img3")'><br><br>
<input type="button" value="Upload" name="B4" onClick='uploadpicture("img4")'><br><br>
<input type="button" value="Upload" name="B5" onClick='uploadpicture("img5")'><br><br>
<script language="vbscript">
Sub uploadpicture(imgno)
Session("imagecap" & strSUnique) = imgno
Document.iprev.submit()
End Sub
</script>