creating new usercontrols at runtime in ASP.NET MVC

Posted by Paul Connolly on Stack Overflow See other posts from Stack Overflow or by Paul Connolly
Published on 2010-03-13T04:38:07Z Indexed on 2010/03/13 5:05 UTC
Read the original article Hit count: 677

Filed under:
|
|

Hi everyone,

My situation is that the user is creating an entity on my site which contains the particlars of the driectors of that company, name address etc..

The Director form is a separate user control with the appropriate textboxes etc.

At run time we don't know how many of these directors there will be so I need one to be able to use something like an "ADD DIRECTOR" or "DELETE DIRECTOR" button which will present or delete the another usercontrol to add the additional director.

Currently I am trying to make this happen within a pane of the JQuery Accordion control.

I have looked many places for how to do this but to no avail.

Can anyone tell me where I might find some inforamation about how I can do this?

All the best

Paul

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about usercontrol