Thursday, 20 June 2019

Model conflicts with the declaration 'System.Web.Mvc.WebViewPage.Model

/////////////Error




//////////////Solution


The problem was In my View I was using somewhere Model => Model. Its should be model => model


Because Model conflict with model

case-I    >    @Html.HiddenFor(Model => Model.RID_Village)   CaseI

case-II    >     @if (Model.RID_Village > 0)

case-III    >   @Html.HiddenFor(model => model.StateCode)    Case II

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...