How to include javascript in aspx page

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
 
H

HrtgSkr

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top