views:

66

answers:

1

i am creating textboxes when a button is clicked and again and again and so on

while accpeting input i need to check if the boxes are all full,

i know how to do this using design view but how to do this using coding

that is add and validation control to the textbox when it created before initializing/adding it to the page.?

thanks

validation should be not null..

+1  A: 

So as for validating the user input I would stay away from the ASP.Net Control Validators as hardly anyone in industry uses them. I would use the jQuery validator plugin which is included in a new Visual Studio project by default. You will still want Server side checking but it is much easier to call String.isNullOrEmpty(txtBox.Text) rather than using the Control Validators.

runxc1 Bret Ferrier