onclick in asp?

Results 1 to 2 of 2

Thread: onclick in asp?

  1. #1
    Join Date
    Dec 1969

    Default onclick in asp?

    In javascript you can use onclick="function_name" to call a javascript function...<BR>Is there a way to do this in ASP or is there a way around it?

  2. #2
    Join Date
    Dec 1969

    Default RE: onclick in asp?

    &#060;SCRIPT LANGUAGE="JavaScript"&#062;<BR>&#060;!--<BR><BR>function checkInput(this) {<BR> var 0001Check = form.0001Check.value;<BR> var 0001Size = form.0001Size.value;<BR> var 0001Qty = form.0001Qty.value;<BR> if (0001Check == 1) {<BR> alert("You must check a box.");<BR> return false;<BR> } else if (0001Qty == 0) {<BR> alert("Select a Quantity.");<BR> return true;<BR> } else {<BR> alert("You are only " + Qty + ". Try again when you are 18.");<BR> field.focus();<BR> field.select();<BR> return false;<BR> }<BR>}<BR><BR>// --&#062;<BR>&#060;/SCRIPT&#062;<BR><BR><BR><BR>&#060;form action = "Order_Form_Confirm.asp" method=post name="order" onSubmit="checkInput(this)"&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts