1

i have a search page that let the user choose a lot of criteria to search with and a lot of them are client side (created on fly) so i decided to save them in a Json object so i can catch all client data easily .

now i want to use these data to form a sql query so i can search with and display results in another page through a gird how to transfer it to another page with session or there is another suggestions to achieve that.

special life
  • 225
  • 1
  • 7
  • 20
  • Query string ? ( although there is a limitation...) or Cookie(s) -you can use 50 cookies per domain, and don't exceed 4095 bytes per domain. Im not saying its the best solution but it is a solution. p.s. you can also use sqlite db. – Royi Namir Nov 03 '12 at 05:56
  • yeah and also i dont want it to appear to the user through url – special life Nov 03 '12 at 05:59
  • 3
    Why don't simple post your big object to another page? – Kirill Bestemyanov Nov 03 '12 at 06:00
  • yeah i was thinking about that but i don't know how to do it with master and content page you know there is no form tag can you show me an example? – special life Nov 03 '12 at 06:04

1 Answers1

0

You can use the client data parameters (as JSON) and make an AJAX Request by posting the data and fetching the results on the same page instead of redirecting the user.

Srinivas
  • 1,780
  • 1
  • 14
  • 27