how to display dynamic in requirefield validator in dynamic html table.

253 Views Asked by At

following code shows the error..

req.Display = "dynamic"; 
cell.Controls.Add(req); 

It shows the error. how to display dynamic ?

1

There are 1 best solutions below

0
On

You must use the enum available for the Validator.

req.Display=ValidatorDisplay.Dynamic;

Think this will help you.