Results 1 to 2 of 2

Thread: add javascript event after the asp net valid

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Posts
    194

    add javascript event after the asp net valid

    I have a text box with RequiredFieldValidator and RegularExpressionValidator

    I add to this text box another event "onchange"
    <asp:TextBox onchange="check_Available(this.value)" ID="siteName" MaxLength="100" runat="server" Width="250px" ></asp:TextBox>


    my problem is that the event run either the validtor not good.

    how can I in javascript run the function just if the page valid.
    (not all page just this text box)

    thanks!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: add javascript event after the asp net valid

    I am having a hard time understanding what you're asking, but you can use siteName.Attributes.Add() and add your javascript there.

Posting Permissions

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



Click Here to Expand Forum to Full Width