在 ASP.NET MVC 运行时创建新的用户控件
我的情况是,用户正在我的网站上创建一个实体,其中包含该公司董事的详细信息、姓名地址等。
董事表单是一个单独的用户控件,带有适当的文本框等。
在运行时,我们不知道会有多少个导演,所以我需要一个能够使用“添加导演”或“删除导演”按钮之类的按钮,该按钮将显示或删除另一个用户控件以添加其他导演。
目前,我正在尝试在 JQuery Accordion 控件的窗格中实现此目的。
我已经在很多地方寻找如何做到这一点,但无济于事。
谁能告诉我在哪里可以找到有关如何执行此操作的信息?
一切顺利
祝保罗
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不完全是“添加用户控件”。但我建议你看看这样的模板引擎: http://aefxx.com/jquery-插件/jqote/
This is not exactly "adding usercontrols". But I suggest you look at a template engine like this one: http://aefxx.com/jquery-plugins/jqote/