title: _Layout styles not applied to Partial View rendered in a popup
body: <p>I am loading a partial view in the popup using following code:</p>
  
  <pre><code>&lt;div id="Mydiv" title="Modify" class="ModifyRule" style="overflow: hidden" /&gt;
      &lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              //define config object
              var dialogOpts = {
                  title: "Modify Rule",
                  modal: true,
                  autoOpen: false,
                  height: 300,
                  width: 700,
                  open: function () {
                      //display correct dialog content
                      $("#Mydiv").load("Modify", { SelectedRow: $('#MyParam').val() });
                  }
              };
              $("#Mydiv").dialog(dialogOpts);    //end dialog
  
              $('#Modify').click(
              function () {
                  $("#Mydiv").dialog("open");
                  return false;
              }
          );
  
          });
  
  
      &lt;/script&gt;
  </code></pre>
  
  <p>Here is the code from partial view:</p>
  
  <pre><code>@Code
  
      Using (Html.BeginForm())
      @&lt;div id="Master"&gt;
          &lt;table&gt;
                            &lt;tr&gt;
                  &lt;td&gt;
                      @Html.LabelFor(Function(model) model.InputAuthorityGridDetail.TcmAccount)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.EditorFor(Function(model) model.InputAuthorityGridDetail.TcmAccount)
                  &lt;/td&gt;
                  &lt;td&gt;
                      @Html.LabelFor(Function(model) model.InputAuthorityGridDetail.Amount)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.EditorFor(Function(model) model.InputAuthorityGridDetail.Amount)
                  &lt;/td&gt;
              &lt;/tr&gt;
                            &lt;tr align="right"&gt;
                  &lt;td&gt;
                      &lt;input name="button" type="submit" value="Save" class="btn" /&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
               &lt;/div&gt;    
      End Using
  
  End Code
  </code></pre>
  
  <p>the controller method modify returns a partial view named _Modify, the view is rendered correctly in the popup but I notice that the CSS styles are not applied to the controls in the partial view can someone help me?</p>