Hi,
I have a table with some form fields. This table is hidden on load. I display it on click of a button.
After i enter values and click button inside this table. It displays the custom validation error inside table (I want the error msg to be displayed inside table) but causes postback and hides the table. How do I stop the postback and display the error message while the table is visible.
The code inside custom validation function is ...
I have a table with some form fields. This table is hidden on load. I display it on click of a button.
After i enter values and click button inside this table. It displays the custom validation error inside table (I want the error msg to be displayed inside table) but causes postback and hides the table. How do I stop the postback and display the error message while the table is visible.
The code inside custom validation function is ...
Code:
if (conditon) {
args.IsValid = false;
}
else {
args.IsValid = true;
}
Comment