The suggestion ofmakingDim txtValid As RequiredFieldValidator = NewRequiredFieldValidator()is working without giving any error but then theProblem of validating is not solved it doesnt validatethe Dynamically generated Text Boxes.