title: open a popup window in mvc asp.net after submitting a form
body: <p>i am not able to open a modal window after submitting. What i have so far is this :
  this is my View Permitions.cshtml that is calling that is 
  <strong>submiting to Action SalvarPermissoes In controller Admin</strong></p>
  
  <pre><code>@using (Html.BeginForm("SalvarPermissoes", "Admin", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
      {
          &lt;header&gt;
              &lt;h2 id="titulo" name="titulo"&gt;@ViewBag.Title  | @ViewBag.UserPrincipal.Name | @ViewBag.UserPrincipal.EmployeeId &lt;/h2&gt;
          &lt;/header&gt;
          &lt;input name="permissoes_modulos" hidden value="@ViewBag.UserPrincipal.EmployeeId" /&gt;
          &lt;table&gt;
              @foreach (var mod in ViewBag.Modulos)
              {
                  &lt;tr&gt;
                      &lt;td&gt;&lt;label name="permissoes_modulos" value="@mod.moduloId"&gt;@mod.moduloId&lt;/label&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;label&gt;@mod.nomeModulo&lt;/label&gt;&lt;/td&gt;
                      &lt;td&gt;
                          &lt;div class="form-check"&gt;
                              &lt;label class="switch"&gt;
                                  @if (mod.acesso == 1)
                                  {
                                      &lt;input name="permissoes_modulos" type="checkbox" checked data-toggle="toggle" id="@mod.moduloId" value="@mod.moduloId"/&gt;
                                  }
                                  else
                                  {
                                      &lt;input name="permissoes_modulos" type="checkbox" data-toggle="toggle" id="@mod.moduloId" value="@mod.moduloId"/&gt;
                                  }
                                  &lt;span class="slider round"&gt;&lt;/span&gt;
                              &lt;/label&gt;
                          &lt;/div&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              }
          &lt;/table&gt;
          &lt;div class="col-md-offset-2 col-md-10"&gt;
              &lt;input type="submit" class="btn btn-default" value="salvar" /&gt;
          &lt;/div&gt;
      }
  </code></pre>
  
  <p>then my Admin Controller have the action SalvarPermissoes </p>
  
  <pre><code>public ActionResult SalvarPermissoes(int[] permissoes_modulos)
  {
      int employeeID = permissoes_modulos[0];
  
      UserManagement userManagement = new UserManagement();
      userManagement.EmployeeID = employeeID;
      userManagement.DeleteUserManagement();
  
      for(int i = 1; i &lt; permissoes_modulos.Length; i++)
      {
          userManagement.ModuleID = permissoes_modulos[i];
          userManagement.InsertUserManagement();
      }
  
      return View(); //this target view is suppose to be a modal window
  }
  </code></pre>
  
  <p>and this controller is call a view SalvarPermissoes.cshtml which i want to be a modal window using preferentially bootstrap.</p>
  
  <p>Thanks in advance</p>