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
Guest User
Tech Writer
2.1k
473.1k
How to call two models on a View in asp.net mvc?
Jun 15 2020 3:23 AM
Hi Team
I
// Two model class here.
public
class
RoleViewAndFileViewModel
{
public
RoleViewModel RoleViewModelData {
get
;
set
; }
public
FileViewModel FileViewModelData {
get
;
set
; }
}
// View class
@
using
eNtsaRegistrationTraining.Models
@RoleViewAndFileViewModel
@{
ViewBag.Ttile =
"Dashboard"
;
Layout =
"~/Views/Shared/_HomeLayout.cshtml"
;
}
have two models and i am using them both, but how do i call them at once on my view.cshtml?
Reply
Answers (
1
)
Import Data From excel into Sql Server using C# and Eppplus
32-bit and 64-bit Configuration Manager