Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I created dynamic controls from DB like Textbox,DropDown list . Suppose i have Textbox like Phone No and Email . now I want to Validate these controls Dynamically . How can i perform it . Kindly suggest me a solution .

Thanks in advance
Posted

Vinodh.B wrote:
now I want to Validate these controls Dynamically


By dynamically you mean when people enter something into it right?

Either you can add validation controls at runtime along with textbox/dropdwon box or keep validation controls on the page from before and just tie them up with your dynamic controls.

You can also tie up Javascripts to the controls created at runtime.
 
Share this answer
 
You can create compare/required validator at runtime and bind it with appropriate control.

This will help you to validate any dynamically crated control at runtime. :thumbsup:
 
Share this answer
 
Comments
Vinodh.B 3-Jun-10 8:27am    
Hi
thanks for reply . But it wil be more clearer if you can add some sample coding since am new to this concept and domain .
suresh_spsuthar 29-Feb-12 0:40am    
Hi,

Did you get solution for above issue ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900