Each helper has associated with it a name prefix. The name prefix associated witha main View is an empty string, but the name prefixes associated with helpers of partial views, templates or returned after in-line transformations are
not empty. The name prefix is added as a prefix to all input fields names, and since the id of all input fields are computed from their names, it indirectly affect also all ids.
PrefixedId helper overloads:
public static string PrefixedId<VM>(this HtmlHelper<VM> htmlHelper, string localName)
public static string PrefixedId<VM,T>(this HtmlHelper<VM> htmlHelper, Expression<Func<VM, T>> expression)
You can pass to the PrefixedId helper either the name of the property or the Lambda Expression that univocally identify it.