Creating ascx dynamically and adding controls to it
<p>I am a beginner in asp.net(C#) and stuck in an important point.</p>

<p>I have a dropdown list on my homepage which users select a category.
After selecting the category, user will fill a form which has related controls to that category in it.</p>

<p>As I have many categories, I just want to have single ascx page and adding controls to it dynamically according to the user choice.</p>

<p>For example: One chose Telephone category, he will face a form having drop down lists asking, what brand? what color?
And one chose, book category, he will face drop down lists asking which type? howmany pages?</p>

<p>So 1 ascx must do my work at runtime done as I have alot of categories.</p>

<p>I am going to take these criterias from a database table which has CategoryID and Criteria colomns.</p>

<p>And if I can do that, will it be possible to add field validators to these dynamically created controls.</p>

<p>Nearly all controls are drop down list, if this helps.</p>

<p>Any help would be highly appreciated..</p>

<p>Thanks alot</p>
