Results 1 to 3 of 3

Thread: Asp.net validation control issues

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    211

    Asp.net validation control issues

    Hello folks,

    I have a simple screen. There is one " date" text box and two buttons and a valiation control.

    I have attached the screen shot.
    When the user clicks on a "Go" button valiation control pops up the warning message "Enter a date". When the user clicks on "Runs" button, I disabled the validation in the Runs button control and so warning pops up. So far so good.

    I added an additional grid control in the same page where the user can edit the grid content.

    After editing the grid content if he hits the save button the valiation popup is coming up saying that the "date" text box has to be entered. How can I disable the validation control for the gridview control.

    I tried putting CausesValidation="false" in the Gridview control. It threw error saying there is no such property or something. I also tried putting in the <columns>. That's also not working and same error.

    So how can I limit the validation control check to specifically to only "date" text box?

    thanks
    nath
    Attached Images Attached Images  

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Asp.net validation control issues

    Hello,

    I am not 100&#37; sure about this, but it is worth a try. Try creating a validation group for the Date TextBox and Go button:

    http://www.w3schools.com/ASPNET/prop...ationgroup.asp

    Gary

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    211

    Re: Asp.net validation control issues

    Let me try now and I will post back soon.

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