title: Change position of popup dialog
body: <p>English is not my native language; please excuse typing errors. </p>
  
  <p>I am trying to display a popup dialog that reads "Saved successfully" when a user clicks on save button.</p>
  
  <p>In Html, I have</p>
  
  
  
  <pre><code>&lt;script src="Scripts/jquery-ui-1.9.0.custom.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;link rel="Stylesheet" type="text/css" href="Styles/jquery-ui-1.8.21.custom.css" /&gt;
  &lt;link rel="Stylesheet" href="Styles/jquery-ui.css" /&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          var isSaved = '&lt;%= this.showSavedDialog %&gt;';
          if (isSaved)
          {
              $("#savedDialog").dialog({
                  buttons: {
                      OK: function () {
                          $(this).dialog("close");
                      }
                  },
                  position: {
                      my: 'left bottom',
                      at: 'right top',
                      of: ("#btnSave")
                  }
              });
          }
      });
  
  &lt;/script&gt;
  
  &lt;asp:LinkButton ID="btnSave" runat="server"&gt;Save&lt;/asp:LinkButton&gt;
  
  &lt;div id="savedDialog"&gt;
      Saved successfully
  &lt;/div&gt;
  </code></pre>
  
  <p>and in the code behind, I have</p>
  
  <pre><code>protected bool showSavedDialog
  {
      get
      {
          if (Session["showSavedDialog"] == null)
          {
              Response.Redirect("SessionExpired.aspx");
          }
          return bool.Parse(Session["showSavedDialog"].ToString().ToLower());
      }
  }
  </code></pre>
  
  <p>I do get the popup dialog when I click the Save button. But, the problem is that the Save button is far down the page and the dialog is displayed on top of the page, so I have to scroll all up to click the "OK" button on the dialog. I've found solutions about how to change the position of the dialog, but no matter how I set it up, the display is positioned on the top of the page or right under the save button(that's where the actually html code for the dialog, "savedDialog", is). 
  What am I missing here to change the position of the dialog? I'm very new with jquery so I would appreciate any help. 
  Ideally, I want to display it in the center of the page, or at least, I want it to be right next to the save button. </p>