Wednesday, January 20, 2010

How to create and validate asp.net controls at runtime?

Hai friends, I want to create asp.net controls at runtime. I need to get the values of that controls and also want to validate the control using javascript. How to do that? any one pls.How to create and validate asp.net controls at runtime?
use the Controls collection of the page itself, or any child control. Using it, you can create any kind of control that you need to and the call





somecontrol.Controls.Add(some other control)





at runtime. You can also get access to them using the same collection, either by knowing the index of the control you're looking for, or by using





somecontrol.Controls.IndexOf( the control you're looking for);





Hope that helps.
  • eye make up
  • No comments:

    Post a Comment