By using listi.net you agree to our cookie policy, We and our partners operate globally and use cookies, for multiple purposes

listi.net

 


Checkboxes in ASP

To use checkboxes in ASP you need to have the following:

If the checkbox is checked the value is returned, otherwise empty is returned.

Create first file called chktest.htm with the following:



<script language="Javascript">
function Subit() {
  document.chk.submit();
}
</script>


<form  method="Post" name="chk" action="programtorun.asp?param=1234">
<input type="checkbox" name="option1" value="1" checked onClick="Subit()">
<a href="PublicListHelp.asp">Public List</a>
<input type="checkbox" name="option2" value="1" onClick="Subit()">Public can Add
</form>
blog comments powered by Disqus
   
Home | About | Feedback| Privacy | Terms of Service | @alecberg | FAQ | | Copyright © 2022 All Rights Reserved. Edit
This site uses cookies. If you don't want cookies and who doesn't want them as they're yummy, then leave.