asp.net mvc 4 - 'Model' conflicts with the declaration in view page MVC4 -
when i'm trying this, i'm getting weird error.
<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 declaration'system.web.mvc.webviewpage<tmodel>.model' //similarly when comment above line error shifting down @html.dropdownlistfor(x=>x.lead_source,model.leadsourcedata)
Comments
Post a Comment