.Net Links

Thursday, January 20, 2011

Enabling / Disabling .Net Validation Controls in Javascript

The below piece of code will help to enable for disable validation controls in .Net



var myValidator1 = document.getElementById('ctl00_cphBody_ReqFldValid');
ValidatorEnable(myValidator1, bool);

The ValidatorEnable contains two parameters.The first is for passing the Control ID and the other a boolean variable True or False to make it enable or disable

Labels: ,