Monday, March 7, 2011

ASP.NET - Disabling validators in a gridview using javascript

Further to my question on disabling validators using javascript - http://stackoverflow.com/questions/400346/disable-asp-net-validators-with-javascript ...

Does anyone know how to pass through a gridview in javascript to dynamically disable the validators on each row. I now understand that I'll need to use ValidatorEnable(validatorControl, false) to disable each validator but how do I discover the validators in the first place?

Many thanks.

From stackoverflow
  • You will have to drill down through the gridview and select the individual validators that way.

    An excellent example of accessing a gridview with javascript can be found here

0 comments:

Post a Comment