Page.IsValid question?

Results 1 to 2 of 2

Thread: Page.IsValid question?

  1. #1
    Join Date
    Dec 1969

    Default Page.IsValid question?

    In the follwoing code, ELSE part is not being triggered eventhough page is invalid. I am trying to display some text when page is invalid(like if something is not entered in the required field, )<BR><BR><BR>Sub ValidateBtn_Click(sender As Object, e As EventArgs) <BR> If (Page.IsValid) Then<BR> <BR> <BR> <BR> lblOutput.Text = "Page is Valid!"<BR> Else<BR> <BR> lblOutput.Text = "Some of the required fields are empty"<BR> End If<BR> End Sub

  2. #2

    Default RE: Page.IsValid question?

    Why not just use the Validators and the validationSummary?

Posting Permissions

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