Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4055670
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:43:49+00:00 2026-05-20T14:43:49+00:00

How to store this value in session? My grid has 3 pages.. with page

  • 0

How to store this value in session?

My grid has 3 pages.. with page size 50 when I change this dropdown list box in first page it’s doing perfect. but when I got to second page I am not seeing selected value for this dropdown list boxes?

Is there any way that we can maintain seession for this dropdownlist box value to send to the next page to set?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:43:50+00:00Added an answer on May 20, 2026 at 2:43 pm

    By session, do you mean your server-side session variable? If so, you would need to send a post to a page of your language of choice, parse out the variable, and then on the next page, read the session variable and set the option selection accordingly.

    If by session, you mean keeping the same option on the client side, this could easily be accomplished by setting a cookie on the clients machine through javascript and then read it in on the next page, or to send a query string along with the url of the next page.

    EDIT

    If there is no automatic post, I would recommend setting a cookie when a option is chosen.

    Here is some pseudocode you can adapt to work for you: (more on javascript cookies @ w3schools )

    <option onclick="setcookie("#id")">
    function setCookie(choice){
      document.cookie="option=" + choice;
    }
    

    next page:

    $(document).load(checkCookie());
    function getCookie(option)
    {
    var i,x,y,ARRcookies=document.cookie.split(";");
    for (i=0;i<ARRcookies.length;i++)
    {
      x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
      y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
      x=x.replace(/^\s+|\s+$/g,"");
      if (x==option)
        {
        return unescape(y);
        }
      }
    }
    function checkCookie()
    {
    var option=getCookie("option");
      if (option!=null && option!="")
      {
       $(option).selected();
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get Session Value and store in the variable.. how can
PHP use browser cookie PHPSESSID to store the session value let say 12345 and
I have a this asp.net page which upon first time load: 1: Make a
I have noticed that in order to store a value into the session you
http://www.taxmann.com/TaxmannWhatsnewService/Services.aspx?service=gettopstoriestabnews This is my web service I have to parse and store all value
I am currently executing AJAX query stores on each onblur if this.value is not
I am using Datetime.Minvalue which return 1.1.0001. This value can not be stored to
I have this 4 Dimensional array to store String values which are used to
I have a value int called score and i want to save this to
This program is supposed to determine how many units are stored in the value

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.