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)  

found here

model should model i.e

  @html.labelfor(model=>model.company_name) 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -