当我尝试这样做时,我发现了一个奇怪的错误。
<tr>
<td>
@Html.LabelFor(Model=>Model.Company_Name)
</td>
<td>
@Html.TextBoxFor(Model=>Model.Company_Name)
</td>
</tr>
<tr>
<td>
@Html.DisplayNameFor(m=>m.LOB_NAME)
</td>
<td>
@Html.DropDownListFor(x=>x.LOB_NAME,Model.Lobdata)
//Error here saying 'Model' conflicts with the declaration'System.Web.Mvc.WebViewPage<TModel>.Model'
//Similarly when i comment the above line the error is shifting down
@Html.DropDownListFor(x=>x.Lead_Source,Model.leadsourcedata)