Home .net core mvc partial views
Reply: 0

.net core mvc partial views

shiva Published in 2018-01-12 20:03:29Z

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.338061 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO