title: Close KendoUI Window & reload Parent page on successful login
body: <p>I have a View which contains "button" &amp; KendoUI window which is not visible by default.</p>
  
  <p><strong>Index.cshtml</strong>:</p>
  
  <pre><code>@(Html.Kendo().Button()
      .Name("btnLogin")
      .Content("Login")
      .Events(e =&gt; e.Click("LoginBtn")))
  
  @{Html.Kendo().Window()
  .Name("windowLogin")
  .Title("Login")
  .Content("loading user info...")
  .LoadContentFrom("Login", "Account")
  .Modal(true)
  .Visible(false)
  .Iframe(true)
  .Draggable()
  .Resizable()
  .Render();
  }
  </code></pre>
  
  <p>On click of button, modal window is opened which contains form. "Login" action is reurning View containing complete form.</p>
  
  <p><strong>Login.cshtml</strong>:</p>
  
  <pre><code>&lt;h2&gt;Login Details&lt;/h2&gt;    
  @Html.ValidationMessage("error")
  @using (Html.BeginForm("Login", "Account", FormMethod.Post))
  {
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              @Html.Label("UserName: ")      
          &lt;/td&gt;     
          &lt;/td&gt;
          &lt;td&gt;
              @Html.TextBoxFor(user =&gt; user.UserName)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.ValidationMessageFor(user =&gt; user.UserName, "Enter Name")
          &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;&lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              @Html.Label("Password: ")
          &lt;/td&gt;
          &lt;td&gt;
              @Html.PasswordFor(user =&gt; user.Password)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.ValidationMessageFor(user =&gt; user.Password, "Enter Password")
          &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;&lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;input type="submit" value="Login" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input id="CancelButton" type="button" value="Cancel"  /&gt;
          &lt;/td&gt;            
      &lt;/tr&gt;
  &lt;/table&gt;
  }
  
  @section Scripts {
  @Scripts.Render("~/bundles/jqueryval")
  }
  </code></pre>
  
  <p><strong>AccountController.cs</strong>:</p>
  
  <pre><code>[HttpPost]
      public ActionResult Login(User user)
      {
          var userDetails = ExecuteQueries.GetUser(user);
  
          if (userDetails != null)
          {
              Session["userName"] = userDetails.UserName;                
              //FormsAuthentication.RedirectFromLoginPage(user.UserName, true);          
          }
  
          else
          {
              ModelState.AddModelError("error", "UserName or Password is incorrect");
          }
  
          return View("Login");
      }
  </code></pre>
  
  <p>The problem I am facing is that I am not able to close modal window &amp; reload the parent screen. After successful login my new window is opening in the same modal window, what I want is close the modal window &amp; refresh parent screen.</p>