title: How to refresh a parent page after closing sharepoint dialog?
body: <p>How to refresh a parent page after closing sharepoint dialog?
  Here is my coding to open a pop-up.</p>
  
  <pre><code>&lt;input type="button" value="Add" class="button submit" style="width: 80px" onclick="javascript:OpenAttachmentUpload()" /&gt;
  
  &lt;script type="text/javascript"&gt;
  
      //User Defined Function to Open Dialog Framework
      function OpenAttachmentUpload() {
  
          var strPageURL = '&lt;%= ResolveClientUrl("~/Dialogs/AttachUpload.aspx") %&gt;';
          //OpenFixCustomDialog(strPageURL, "Attachment");
          OpenCustomDialog(strPageURL, 350, 200, "Attachment");
          return false;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>here is the script.</p>
  
  <pre><code>function OpenCustomDialog(dialogUrl, dialogWidth, dialogHeight, dialogTitle, dialogAllowMaximize, dialogShowClose) {
  
      var options = {
          url: dialogUrl,
          allowMaximize: dialogAllowMaximize,
          showClose: dialogShowClose,
          width: dialogWidth,
          height: dialogHeight,
          title: dialogTitle,
          dialogReturnValueCallback: Function.createDelegate(null, CloseCallback3)
      };
      SP.UI.ModalDialog.showModalDialog(options);
  }
  </code></pre>
  
  <p>After opening it, when I close the pop-up <strong>(~/Dialogs/AttachUpload.aspx)</strong> , I wanna refresh the parent page.
  How can I do it?
  I google and see <strong>SP.UI.ModalDialog.RefreshPage</strong> but still can't find an answer for me.
  Thanks.</p>
  
  <p>P.s
  I don't know much about SharePoint.</p>