Question on Validation Control

Results 1 to 2 of 2

Thread: Question on Validation Control

  1. #1
    Join Date
    Dec 1969

    Default Question on Validation Control

    I use validation control for 2 input Textboxs in a form. for each textbox, there is a button to submit input data, it means users need not to fill up both textboxs. the problems, when I set validation control to both textboxs, I found I must fill up both textboxs, otherwise cannot continue.<BR><BR>So I tried to use: (C# ; in .aspx.cs)<BR><BR>reqNewFile.Enabled = true;<BR>regNewFile.Enabled = true;<BR><BR>however after added these 2 lines, the validations cound not run at all.<BR><BR>can u help me? thanks!!!

  2. #2
    Join Date
    Dec 1969

    Default RE: Question on Validation Control

    I think that you need to write a custom validator to conditionally validate a field based on what button was pressed.

Posting Permissions

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