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
Amr Elshaer
NA
375
18.9k
How To Make View Take More Parameter in Asp.net Mvc
Nov 17 2020 5:08 AM
If you Want To make your view Take more argument you can use Tuple instead of making an object
Let`s say I have a view that takes IEnumerable of Student If I want to pass something with it to view I make an object
that contain IEnumerable of student and string Message or using ViewBag or ViewData so you can use Tuple
in view (IEnumerable<Student> students, string message) so it makes view code and view dependency.
Reply
Answers (
3
)
Get Post Like and View.
How to save a captured frame to project folder in ASP.Net c#?