title: Redirect to another page using javascript without query string
body: <p>I want to redirect to another page and pass some parameters only using javascript. I am not supposed to use query string. Is there any way to achieve this? I am working on asp.net.</p>
  
  <p>I want this redirection to use with devexpress scheduler control where when a user clicks on an appointment, the user be redirected to another page by passing the selected appointment's ID as parameter. It should not be passed as query string.</p>
  
  <p>I would also like to know how to retrieve such kind of invisible parameter from the redirected page.</p>
  
  <p>Ok I found out my solution. </p>
  
  <p>I used javascript to click a <code>&lt;asp:Button&gt;</code> that is set to <code>style="display:none"</code>. In my scenario, I could get the properties of scheduler appointment that I had clicked. I then put these properties in hidden fields and in the server side click event of this 'invisible' button, I use these hidden field values to make my redirection through server side. My code is as below</p>
  
  <pre><code>&lt;asp:Button ID="Appointment" runat="server" Text="sample" 
      onclick="Appointment_Click" style="display:none"/&gt;
  &lt;asp:HiddenField ID="hfID" runat="server" /&gt;
  &lt;asp:HiddenField ID="hfSubject" runat="server" /&gt;
  &lt;asp:HiddenField ID="hfDate" runat="server" /&gt;
  
  &lt;script type="text/javascript" language="javascript"&gt;
      function OnAppointmentClick(s, e) {
          //debugger;
          var apt = scheduler.GetAppointmentById(e.appointmentId);
  
          var apt1 = scheduler.GetAppointmentProperties(e.appointmentId);
  
          var aptID = document.getElementById('&lt;%= hfID.ClientID %&gt;');
          var aptDate = document.getElementById('&lt;%= hfDate.ClientID %&gt;');
          var aptSubject = document.getElementById('&lt;%= hfSubject.ClientID %&gt;');
          aptID.value = e.appointmentId;
          var date = (apt.startDate.getMonth()+1) + '/' + apt.startDate.getDate() + '/' + apt.startDate.getYear(); 
          aptDate.value = date;
          aptSubject.value = apt.CODE;
          document.getElementById('&lt;%= Appointment.ClientID %&gt;').click();
      }    
      &lt;/script&gt;
  </code></pre>