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 295625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:28:28+00:00 2026-05-12T06:28:28+00:00

Consider the scenario where: an ASP.NET webform page has a DropDownList and a ListView.

  • 0

Consider the scenario where:

  • an ASP.NET webform page has a DropDownList and a ListView.
  • this DropDownList must set a cookie value on its OnSelectedIndexChanged event.
  • the DropDownList is also set to AutoPostBack="True" to force the ListView to reload using the DropDownList’s new value.
  • the page is referencing current JQuery libraries, including the great set of cookie plugins

This code will be used in the assignment of the value of the cookie:

var date = new Date();
date.setTime(date.getTime() + (3 * 24 * 60 * 60 * 1000));
$.cookie('cookieName', 'theValue', { path: '/', expires: date });

Question: Can you suggest how to have the DropDownList’s value extracted and saved to a cookie using jQuery? Super bonus points for an answer including how to call the post-back method to rebind the ListView! I would definitely love to save a post-back ‘flash’ for the user.

  • 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-12T06:28:29+00:00Added an answer on May 12, 2026 at 6:28 am

    1) For getting value of DropDownList:

    var ddlVal = $('#<%= ddList.ClientID %>').val();
    

    2) Loading ListView:

    a. For this I will suggest consulting Dave’s postings at his site Encosia.

    b. Rick Strahl also has great post on is blog regarding using jQuery ajax

    c. Muhammad Mosa has post describing Master-Detail scenario with ajax

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the scenario of upgrading an ASP.NET MVC project. This question is around up-converting
Consider the scenario: I visited a page of a website built using ASP.NET. The
Consider this scenario: <asp:CheckBoxList> in a master page. the goal is to have all
Consider a scenario where a Mirth channel has one or more Destinations. In this
Consider the following scenario: Page written in classic ASP or PHP, which is rendering
Coding Platform: ASP.NET 4.0 C# Consider the following scenario. I am uploading a file
Please consider this scenario: a web app that has 4 levels of access: admin
Consider this scenario we have a class A which is singleton it has a
Consider this scenario: I've an XML file called person.xml with the following data in
Consider this scenario. I have my own website, that I use as my identifier,

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.