troubleshooting Question

ASP.NET MVC 3 - pass a ViewModel to a strongly typed Partial View

Avatar of JosephEricDavis
JosephEricDavis asked on
ASP.NET.NET ProgrammingC#
1 Comment1 Solution918 ViewsLast Modified:
I'm a little new to MVC and I'm trying to implement a partial view.  I have this partial view set up as a strongly typed partial view having a custom ViewModel class that I have created for it specifically.  I understand that inside a regular view I can return a populated version of the ViewModel to the View in the controller.  But I don't understand how to pass the ViewModel into a partial view.  How does this take place?
ASKER CERTIFIED SOLUTION
jagrut_patel

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros