如何将动态控件添加到mvc视图 [英] How to add dynamic controls to the mvc view

查看:99
本文介绍了如何将动态控件添加到mvc视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的专家



我需要一个以下任务的例子。



我有一个注册表在mvc 4。我有一些依赖性问题也在注册表格中。所以我必须在输入一个问题的答案后去服务器存储该答案,我将检查我有任何依赖性问题启用基于当前的问题答案(动态问题) )。而且我在模型中只有一个字段用于许多答案。在这种情况下,我该如何完成这项任务。我怎样才能进行验证。



谢谢



AnkiReddy

Dear Experts

I need an example for below task.

I have one registration form in mvc 4 . i have some dependency questions are also there in the registration form.so i have to go server after entering an answer for a question to store that answer and i will check i there any dependency question to enable based on the current question answer(dynamic questions). and i have only one field for many answers in model. in this case how can i accomplish this task. and how can i do validations.

Thanks

AnkiReddy

推荐答案

参见..

http://sudarsandash.blogspot.in/2013/01/dynamically-adding-controls-in-aspnet.html [ ^ ]

http://forums.asp.net/t/1900487.aspx?MVC+4+how+to+create+动态+控件 [ ^ ]

[ ^ ]
See..
http://sudarsandash.blogspot.in/2013/01/dynamically-adding-controls-in-aspnet.html[^]
http://forums.asp.net/t/1900487.aspx?MVC+4+how+to+create+dynamic+controls[^]
Dynamically adding controls on a hierarchical structure on MVC[^]


这篇关于如何将动态控件添加到mvc视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆