✅ Retain form tag helper names inside partial view
I want to retain a form tag helper's name inside a partial view, I have a massive form model with lots of nested objects, below is just a simplified version of what I wanted to do
I have a form below, this works because Name.FirstName is being handled correctly by ASP automatically setting the name of the <input/> tag, my controller parses this correct into a Member object
but since my form is massive, I wanted to split it to multiple sections, now I put the Name property inside another partial view like below
and below is the main form's .cshtml file
and for some reason this breaks ASP's automatically set name for the <input/> tag, it just sets the input's name to FirstName when it should be Name.FirstName, how do I fix this?
2 Replies