I have a BarEditor.ascx, that can be called from diffent places.
<%@ Control Language=\"C#\" Inherits=\"System.Web.Mvc.ViewUserControl
just create a ViewModel class for your BarEditor and make it strongly typed to this new class
e.g.
namespace ViewModel {
public class BarEditor {
string Prefix { get; set; }
Models.Bar Bar { get; set; }
}
}
now you create your textbox in BarEditor.ascx like this
<%= Html.TextBox(Model.Prefix + ".a") %>
and in your view you include the BarEditor like that
hth