8
Answers

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

NAGARAJU TAMADA

NAGARAJU TAMADA

11y
3.8k
1
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)