neel k

neel k

  • NA
  • 143
  • 136.4k

Display name in MVC view

Jan 30 2015 11:38 AM
I am working on MVC 5 application. In that I need to display the name of the application in every page, that name is coming from database. one of the view display correctly but its not working in other views.
 I am using like this
@Html.DisplayFor(model => model.app_name, new { name = ViewData["Appname"] })
this is working only in one view, not all other views. 
the table columns are not display as expected after this model => model.
how to display the name of the application in all views
Thanks, 

Answers (2)