Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
3060 Points
2788 Posts
Jan 17, 2007 12:40 AM|LINK
I would like to set a couple of session variables when I click an image on the page. The session variables will be equal to textboxes on the same page as the image: Here is the tag for the image.
<
function
Session("Amount") = Me.txtAmount.Text
Session("Zip") =Me.txtZip.Text
}
</
Jackxxx
Contributor
3060 Points
2788 Posts
How can I set session variables with JavaScript
Jan 17, 2007 12:40 AM|LINK
I would like to set a couple of session variables when I click an image on the page. The session variables will be equal to textboxes on the same page as the image: Here is the tag for the image.
<a onclick="window.open('../../Process.aspx','cal','width=490,height=420,left=500,top=180,scrollbars=no')" href="javascript:;"><img alt="Process" src="../../images/register.gif" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" id="IMG1" onclick="return IMG1_onclick()" /></a><
script type="text/javascript" src="../../NoPostBacks.js">function
IMG1_onclick() {Session("Amount") = Me.txtAmount.Text
Session("Zip") =Me.txtZip.Text
}
</
script>Jackxxx