1 Attachment(s)
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
Re: Asp.net validation control issues
Hello,
I am not 100% 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
Re: Asp.net validation control issues
Let me try now and I will post back soon.