Calling a asp function from a button

liunx

Guest
I would like to do this<br />
<INPUT TYPE="button" VALUE="Store Cookie" OnClick="return Cookie()"></INPUT><br />
Is this possible? I want to store the values of a form in a cookie when the user clicks a button. Is this possible?<!--content-->Yes, but there is a limit on the amount of data you can put in a cookie, so it will have to be a small form. Your code would look more like this:<br />
<br />
<br />
<input type="button" onclick="setCookie();" value="Store Cookie"><br />
<br />
<br />
If the data will only be tempoary, however, and is not very long (a maximum of about 200 characters), you can use the GET method of the form and parse the URI.<br />
<br />
[J]ona<!--content-->
 
Back
Top