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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:16:42+00:00 2026-06-18T03:16:42+00:00

I have 2 pages, both with 3 similar DropDownLists. The first DropDownList needs to

  • 0

I have 2 pages, both with 3 similar DropDownLists. The first DropDownList needs to be populated before selecting the second, and the second before the third (which then populates a gridview).

Usually, a user will view data on one page, click a button, and then view data on the next page (usually with the same DropDownList selections). Is there any way to have the dropdownlists pre-populated with their old selections?

  • 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-18T03:16:44+00:00Added an answer on June 18, 2026 at 3:16 am

    You can pass values from one page to the other using the PreviousPage parameter that asp.net provides you. A small example:

    You set the second page on the submit button as:

    PostBackUrl="SecondPage.aspx"
    

    On SecondPage.aspx you declare where you can get informations

    <%@ PreviousPageType VirtualPath="~/FirstPage.aspx" %>
    

    and you get them by…

    if (Page.PreviousPage != null)
    {
        if(Page.PreviousPage.IsCrossPagePostBack == true)
        {
            // and get the controls of the previous page as
            var SomeVariable = PreviousPage.DropDownlListId.SelectedValue;
        }
    }
    

    Some reference.
    Cross-Page Posting in ASP.NET Web Pages
    ASP.NET how to access public properties?
    Cross-page postbacks and back again retaining data from source page
    Cross-page posting. Is it a good pratice to use PreviousPage in Asp.net?

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

Sidebar

Related Questions

I have two very similar .aspx pages. Both of them contain a DropDownList control.
I have a web application which contains both secure (SSL) and non-secure pages. A
I've got two aspx pages which are very similar and have various identical functions
I have two similar pages, one named index.xhtml and one named index_old.xhtml both in
I have the exact same html sitting on two different servers. Both pages call
My Situation: I have 1 asp.net application with both aspx pages AND webservices I
I have a worksheet that spans multiple pages, both vertically and horizontally. It has
I have two CSS tranistions as below (they both cover the page and then
I have a Wicket AuthenticatedWebApplication which has several pages and features that need to
I have 2 different pages login and sign up with email fields of similar

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.