TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
neel k
NA
143
135.9k
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,
Reply
Answers (
2
)
viewdata only UserID related data view then user login MVC4
Session