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

  • Home
  • SEARCH
  • 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 9109865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:08:32+00:00 2026-06-17T03:08:32+00:00

In a page I have drop down list which user use to do search.

  • 0

In a page I have drop down list which user use to do search. These drop downs are created dynamically from database so there number is not known.

Results are shown in next page which again has all drop downs in it. I need to show selected drop down values from previous page in results page but not sure what can be the best way to access selected drop down values from search page.

Please guide

THANKS 🙂

  • 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-06-17T03:08:34+00:00Added an answer on June 17, 2026 at 3:08 am

    You have several options. You can either store the values in database or in Session.

    Another option is to use the PreviousPage property of the page when you transfer to the next page via Server.Transfer.

    Cross-Page Posting in ASP.NET Web Pages

    if (Page.PreviousPage != null)
    {
        DropDownList ddl1 = 
            (DropDownList)Page.PreviousPage.FindControl("DropDownList1");
        if (ddl1 != null)
        {
            Label1.Text = ddl1.SelectedItem.Text;
        }
    }
    

    If that doesn’t work with dynamic controls on the preious page(never tested), you could try to use Request.Form["DropDownList1"] to get the value.

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

Sidebar

Related Questions

I have a drop down list which is dynamically generated using ajax on page
I have one drop down list in my page, which contains two options. What
I have a drop-down list hardcoded in an MVC View User Control page and
I have a parent page which has a drop down list in it. using
I need a city/state/country Dynamic Drop-Down List in my Wordpress registration page. I have
I have a form which has a drop down list for countries. If the
I have a page which has a drop list inside a form. The drop
I have a User Control which renders a simple drop downList into the page.
Background I have a payment page where the user can select from a list
I have a drop down menu in an ASPX page along the lines of:

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.