NAGARAJU TAMADA

NAGARAJU TAMADA

  • NA
  • 205
  • 285.8k

Error : The 'inherits' keyword is not allowed when a 'model'

Oct 5 2013 4:09 AM
Hi to all,

Iam developing a Web project using Asp.net MVC3

I have a Error When click the view page like the following.


Error:Parser Error Message: The 'inherits' keyword is not allowed when a 'model' keyword is used.

Source Error:

Line 1:  @model Mvc3CssApp.Models.InsertSiteModel
Line 2:  
Line 3:  @inherits System.Web.Mvc.WebViewPage
Line 4:  @using System.Web.Mvc
Line 5:  @using System.Web.Mvc.Html


But i want to use @model @inherits in the same view.

Please Solve my Error.

Regards
NagaRaju T

Answers (8)