Asp – Disabling an ASP validation on an event click before it posts back and performs the validation

asp.netpostbackvalidation

Can you disable an ASP validation on an event click before it posts back and performs the validation? This is for ASP with C#.

I would like to load some details into a bunch of text-boxes with field validators on them. However I need to disable the validation of these text-boxes in order to actually fill them, as the validation seems to occur at post-back, before code execution.

If you're wondering why I have field validators on when I'm loading in the data, it's because the fields hold user entered data too.

Best Answer

Buttons have a bool 'Cause Validation' setting.

Related Topic