title: From as partial view in layout page. MVC 5
body: <p>I have a <code>Partial View</code> in my <code>Layout page</code> which contain a Form. The partial view open as <code>popup</code>. After submitting form I have to return back to the current page with opened popup and a success message should appear there but I am not able to return back to the right view. </p>
  
  <p><strong>My Layout Page</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;title&gt;@ViewBag.Title || Midas WebSite&lt;/title&gt;
      @Styles.Render("~/Content/css")
      @Scripts.Render("~/bundles/jquery")
      @Scripts.Render("~/bundles/jqueryui")
      @Scripts.Render("~/bundles/site")
      @Scripts.Render("~/bundles/modernizr")
  
      &lt;script type="text/javascript" language="javascript"&gt;
          /* Superior Web Systems */
          function displayHideBox(boxNumber) {
  
              if (document.getElementById("LightBox" + boxNumber).style.display == "none") {
                  $("#LightBox" + boxNumber).fadeIn();
                  $("#grayBG").fadeIn();
              } else {
                  $("#LightBox" + boxNumber).fadeOut();
                  $("#grayBG").fadeOut();
              }
          }
      &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="grayBG" class="grayBox" style="display:none;"&gt;&lt;/div&gt;
      &lt;div id="LightBox1" class="box_content" style="display:none;"&gt;
          &lt;div onclick="displayHideBox('1'); return false;" class="close"&gt;X&lt;/div&gt;
       @Html.Action("ActionToBindPartialView", "ControllerName")
  &lt;/div&gt;
  
   @RenderBody()
   @RenderSection("scripts", required: false)
   @Scripts.Render("~/bundles/jqueryval")
  </code></pre>
  
  <p><strong>My Partial View</strong></p>
  
  <pre><code>&lt;div id="divActions"&gt;
     // My Form Here
  
      @Ajax.ActionLink("Submit", "ActionName", "ControllerName", new AjaxOptions
           {
             HttpMethod = "POST",
             UpdateTargetId = "divActions",
             OnSuccess = "onSucess()" 
           })
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Now my action code which I have tried so far:</p>
  
  <p><strong>1.</strong></p>
  
  <pre><code>// My Code
  
   return PartialView("MyPartialView");
  </code></pre>
  
  <p><strong>2</strong></p>
  
  <pre><code>// My Code
  
  return PartialView("MyPartialView", MyModel);
  </code></pre>
  
  <p><strong>3</strong></p>
  
  <pre><code>// My Code
  
  return View();
  </code></pre>
  
  <p><strong>4</strong></p>
  
  <pre><code>// My Code
  
  return ParialView();
  </code></pre>
  
  <p>I am a beginner and not able to find what I am doing wrong. Please suggest what should I do to make this work.   </p>