Results 1 to 2 of 2

Thread: Page Validation Not happening

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    95

    Page Validation Not happening

    im using <asp:RequiredFieldValidator../> control to verify the text field entry and also using
    pbok.Attributes.Add("onclick", "JavaScript:return(DateValidate());") to my submit button.

    Actually i want to verify the date Field text box should not be empty and it should be a
    valid date(custom format). So im using Javascript validation for Onclick event of submit Button.

    this is not happens in my coding. why?

    How to implement this task in my asp.net page?

    v.r.mahendran

  2. #2
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    How do you validate?

    Did you do a

    If Page.Isvalid then
    'do something
    else
    'do something else
    end if

    Also make sure your button property causes validation.

    Jon

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