title: How to hide modal pop up on browser back button
body: <p>I have an application where I will show <code>Modal Popup</code> on successful insert, update and delete. But after performing this when I move to next page and coming back to previous page on hitting browser back button the <code>Modal Popup</code> is getting displayed, I don't want to display this pop up on hitting back button. How can I solve this</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
     if (Page.PreviousPage==null) {mpeModalPopup.Show(); }
      if (Session["Tasks"] == null)
      {
          Server.Transfer("login.aspx");
      }
  
      else
      {
          string strTasks = Session["Tasks"].ToString();
          if (strTasks.Contains("205"))
          {
  
  
              if (!IsPostBack)
              {
                  mpeModalPopUp.Hide();
                  funPageLoadData();
                  CheckPopup();
                  Session["url"] = System.Web.HttpContext.Current.Request.Url.AbsolutePath;
              }
  
          }
          else
          {
              ReturnBack();
          }
  
      }
  
  }
  </code></pre>