title: How to show message in div after ajax success and location.Reload()
body: <p>In ajax success call I am doing location.Reload(). After Page reloads I want to show a Message that "Data Uploaded Successfully,". But my page gets reloaded and message get discarded.</p>
  
  <pre><code>var data = {
      "strSelectedIds": selectedArray.join(',')
  };
  var countofProcessedRecords = selectedArray.length;
  $("#divLoader").removeClass("display-none");
  $.ajax({
      url: UrlSettings.ProcessSubscriptioData,
      type: 'POST',
      contentType: "application/json; charset=utf-8",
      dataType: "html",
      data: JSON.stringify(data),
      success: function (response) {
          location.reload();
          $("#msg").append(
              '&lt;div class="alert alert-success hideit alertSuc"&gt;' + countofProcessedRecords + 'subscriptions uploaded successfully.&lt;/div &gt;')
          setTimeout(function () {
              $("#divLoader").addClass("display-none");
          }, 500);
  
      },
      error: function (e) {
          $("#divLoader").addClass("display-none");
      }
  });
  </code></pre>
  
  <p>Can anyone please help me with this.</p>
  
  <p>Thank you in advance..</p>