如何解决模型冲突错误? [英] How to Solve Model conflicts error?
本文介绍了如何解决模型冲突错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在MVC2下拉列表中有错误。
Hi,
I have an error in an MVC2 dropdown list.
<%: Html.DropDownListFor(model=> model.tlukid, new SelectList(Model.taluklist, "Talukid", "Talukname"), new { @class = "inp-form-DDL" })%>
在上面的行中,Model.taluklist显示错误, Model'与声明'system.web.mvc.webviewpage tmodel .model'冲突。
任何人都可以帮我吗?
In the line above, Model.taluklist shows error as, Model' conflicts with the declaration 'system.web.mvc.webviewpage tmodel .model' .
Can any one help me with it?
推荐答案
请尝试如下。
您的问题是您使用模型而非模型。
Please try is as below.
Your problem is you used Model instead of model.
<%: Html.DropDownListFor(model=> model.tlukid, new SelectList(model.taluklist, "Talukid", "Talukname"), new { @class = "inp-form-DDL" })%>
这篇关于如何解决模型冲突错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文