title: c# mvc: how to join Generic View with TextBoxFor?
body: <p>I would like to make a view template which who will be used in a few controllers. 
  I think about a join generic view with <code>@Html.TextBoxFor()</code>. Is possible to do that?</p>
  
  <p>If I have a view standard View:</p>
  
  <pre><code>@model Person
  @using (Ajax.BeginForm("Add", "Person", new AjaxOptions() { UpdateTargetId = "iUG2" }))
  {
     @Html.TextBoxFor( x=&gt;x.name )
     @Html.TextBoxFor( X=&gt;x.surname )
  }
  
  @model Address
  @using (Ajax.BeginForm("Add", "Address", new AjaxOptions() { UpdateTargetId = "iUG2" }))
  {
     @Html.TextBoxFor( x=&gt;x.Street )
     @Html.TextBoxFor( X=&gt;x.City )
  }
  </code></pre>
  
  <p>how to transform on generic view?</p>
  
  <pre><code>class Tab
  {
     public string Method { get; set; }
     public string Controller { get; set; }
  }
  
  @model &lt;T&gt;
  @using (Ajax.BeginForm( ViewBag.Tab.Method, ViewBag.Tab.Controller, new AjaxOptions() { UpdateTargetId = "iUG2" }))
  {
     @Html.TextBoxFor( x=&gt;T.?? )
     @Html.TextBoxFor( X=&gt;T.?? )
  }
  </code></pre>
  
  <p>If I use generic type, <code>@Html.BeginForm()</code> will it still work?</p>