title: How to incorporate another controller's view and behavior into "this" controller's view?
body: <p>I have a jQueryUI tabbed html page, and in its content area for one of the tabs, I have put as follows:</p>
  
  <pre><code>&lt;div id="tabs-1ua"&gt;                           
      @RenderPage("~/Views/Admin/Create.cshtml")
  &lt;/div&gt;
  </code></pre>
  
  <p>The Create.cshtml page does correctly appear within my tab, however when I create the user (this view is a basic user creation page) and click the button, nothing happens. No user is created and no error is presented. The "this" html with the tabs is in a different controller which does not have any model associations. The user creation is inside the AdminController, pertinent methods shown below:</p>
  
  <pre><code>public ActionResult Create()
  {
      return View();
  }
  
   [HttpPost]
  public async Task&lt;ActionResult&gt; Create(CreateModel model)
  {
    if (ModelState.IsValid)
    {
      AppUser user = new AppUser { UserName = model.Name, Email = model.Email};
       IdentityResult result = await UserManager.CreateAsync(user,
                      model.Password);
  
       if (result.Succeeded)
          {
             return RedirectToAction("Index");
          }
       else
          {
              AddErrorsFromResult(result);
           }
  
      }
              return View(model);
  }
  </code></pre>
  
  <p>I put a breakpoint at the beginning of the Post method, but it was never hit when I accessed the create page from within my other page.</p>
  
  <p>When I access this page directly and create a user, I get the expected behavior for new creation and validation. The model is as follows:</p>
  
  <pre><code>  public class CreateModel
      {
          [Required]
          public string Name { get; set; }
          [Required]
          public string Email { get; set; }
          [Required]
          public string Password { get; set; }
      }
  </code></pre>
  
  <p>And the Create.cshtml view is as follows:</p>
  
  <pre><code>@model IdentityDevelopment.Models.CreateModel
  @{ ViewBag.Title = "Create User";}
  &lt;h2&gt;Create User&lt;/h2&gt;
  @Html.ValidationSummary(false)
  @using (Html.BeginForm())
  {
      &lt;div class="form-group"&gt;
          &lt;label&gt;Name&lt;/label&gt;
          @Html.TextBoxFor(x =&gt; x.Name, new { @class = "form-control" })
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;label&gt;Email&lt;/label&gt;
          @Html.TextBoxFor(x =&gt; x.Email, new { @class = "form-control" })
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;label&gt;Password&lt;/label&gt;
          @Html.PasswordFor(x =&gt; x.Password, new { @class = "form-control" })
      &lt;/div&gt;
      &lt;button type="submit" class="btn btn-primary"&gt;Create&lt;/button&gt;
      @Html.ActionLink("Cancel", "Index", null, new { @class = "btn btn-default" })
  }
  </code></pre>
  
  <p>My questions are, is it possible to do what I am trying to do? If so what changes do I need to make in order to reuse the existing available code?</p>
  
  <p>Thank you.</p>