How to include javascript in aspx page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AV

    #1

    How to include javascript in aspx page

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

    Can i do the same thing using Custom Validator?
    thanks
  • HrtgSkr

    #2
    Re: How to include javascript in aspx page

    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 programmaticall y
    into the html.

    Dawn.


    "AV" <anilvarmaen@ho tmail.com> wrote in message news:<a28201c35 c5c$a2192790$a0 01280a@phx.gbl> ...[color=blue]
    > hi, I have javascripts for my Old ASP application i was
    > using
    > <script language="javas cript" type="text/javascript"
    > src="scripts/validate_fields .js">
    > </script>
    >
    > Can i do the same thing using Custom Validator?
    > thanks[/color]

    Comment

    Working...