Results 1 to 3 of 3

Thread: probelem regarding validation on my ASPX form.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    121

    probelem regarding validation on my ASPX form.

    Dear friends,

    I have a probelem regarding validation on my ASPX form.

    All the controls used are server side (runat=server attribute)

    I have used RequiredFieldValidator to check empty fields.At the same time i have aslo used a javascrript on Button click(Butoon is also server side control)


    to call the function of javascript i have used somethig like this under page_load event

    Code:
    btnInsert.Attributes.Add("OnClick","return check();");
    problem now is this if my Javascript function return TRUE my form is submited without calling my required field validators.

    any suggestion .

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    121

    Unhappy Re: probelem regarding validation on my ASPX form.

    No,One Replied to my Query.

    Am I not clear in making my problem understand to u all???

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

    Re: probelem regarding validation on my ASPX form.

    Use a CustomValidatorControl and perform your javascript checks in 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