I have all most the same question as him ASP.NET MVC partial views: input name prefixes
I am tring to create CRUD operations for this data entities:
Try this extension:
public static void RenderPartialWithPrefix(this HtmlHelper helper, string partialViewName, object model, string prefix) { helper.RenderPartial(partialViewName, model, new ViewDataDictionary { TemplateInfo = new System.Web.Mvc.TemplateInfo { HtmlFieldPrefix = prefix } }); }