Home .net core mvc partial views
Reply: 0

.net core mvc partial views

user543 Published in May 25, 2018, 11:12 am

I have address partial view i want to use the partial view multiple times in a page. i tried setting viewdictionary property with HtmlFieldPrefix property. WHen saving the data only first instance of the partial view is getting passed to controller method while saving. Any help with is appreciated.

await Html.PartialAsync("_Address", Model.ContactA**strong text**ddress, new ViewDataDictionary(Html.ViewData)
        TemplateInfo = { HtmlFieldPrefix = nameof(Model.ContactAddress) }
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO