  Sys.WebForms.PageRequestManager.getInstance().add_endRequest(CheckSuccessInTouchClub);
  function CheckSuccessInTouchClub(sender, args)
  {
    if (IsPostBackElement('loginSubmitHeader'))
    {
      var success = $get('loginSuccessHeader');
      if(success)
      {
        window.location = self.location;
      }
      return;
    }
    if (IsPostBackElement('LogoutSubmitHeader'))
    {
      var success = $get('LogoutSuccessHeader');
      if(success)
      {
        window.location = self.location;
      }
      return;
    }
  }
