Author: eagle_f90 | Posted on: 9/23/2010 8:17:35 PM | Views : 503

I know you can create validation controls in C# code
RequiredFieldValidator Name = new RequiredFieldValidator(); Name.ControlToValidate = "ControlName"; RegularExpressionValidator name = new RegularExpressionValidator(); name.ControlToValidate = "ControlName"; name.ValidationExpression = "xx/xx/xxxx";
but is there a way to do it in a single line? In a recent post I had I learned a one line method to make textboxes and drop down lists
Label lblReleaseDate = DynamicControlCreator.Label("lblReleaseDate" + i, " Release Date (MM/DD/YYYY): "); TextBox tbReleaseDate = DynamicControlCreator.TextBox("tbReleaseDate" + i); Label lblRegion = DynamicControlCreator.Label("lblRegion" + i, " Region: "); DropDownList ddlRegion = DynamicControlCreator.Drop ...

Go to the complete details ...