Home Dynamically pass in different view models to the same partial view
Reply: 0

Dynamically pass in different view models to the same partial view

xyzcode
1#
xyzcode Published in 2017-11-09 23:51:15Z

I have a partial view that contains data used in two places. Is it possible to dynamically pass in different viewmodels to the same partial view? I can't seem to find a straight answer. I've tried adding @model dynamic to the top of my view but my properties complain saying: "An expression tree may not contain a dynamic operation"

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.557951 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO