Click here to Skip to main content
15,904,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
as my requirement, i want to give provision to add staff's and their relavent students.hence, one staff will have more students. i would like to give provision to naive user to create dynamic controls so as to add more staff and more students. can anyone help on this please?

Thanks in advance,
Karan
Posted

1 solution

Adding controls dynamically is not too difficult - just create the control instance and add it to the Controls list - but I don't think it is a good idea for your application.

Instead of adding controls for each member of staff and each student, have you considered using two lists instead? Probably a DataGrid or similar? That way your page would remain the same, but the data on it would be changeable?
 
Share this answer
 

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