How to include javascript in aspx page

  • Thread starter Thread starter AV
  • Start date Start date
A

AV

hi, I have javascripts for my Old ASP application i was
using
<script language="javascript" type="text/javascript"
src="scripts/validate_fields.js">
</script>

Can i do the same thing using Custom Validator?
thanks
 
If you mean can you do the same validations on the server side with a
custom validator, yes. You tie code-behind validation code to the
Page IsValid, which you check on a postback.
You can still, also, insert the script tag, enable client side
validation and insert the function call directly or programmatically
into the html.

Dawn.
 
Back
Top