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

The Archive Base Latest Questions

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

I am using master page and child pages in asp.net application. I am having

  • 0

I am using master page and child pages in asp.net application. I am having a drop down list and treeview (which uses sitemapdatasource) on master page. When I click on any of the treeview node,page is redirected to child page.

The problem is if select any value in the drop down list and click on treeview node, the selected value should be assigned to at ext box in child page. This is not working. master page_load () is executing after child page_load(), is it because of this?

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

    Since you can’t directly view a master page I’m assuming you have two pages which use a common master page. I am also assuming that this master page displays a drop down list and a treeview sitemap.

    Based on this I would think that what is mostly happening is that your treeview is rendering plain old html links (i.e. <a href='http://stackoverflow.com'>...). When these are clicked your browser executes a get request for the second child page. By default no data from the first child page is passed to the second.

    There are various ways to change this behavior. First you should set the AutoPostBack property to true and the handle SelectedIndexChanged event on your dropdownlist. In that event you can save the value of the dropdown so that it can be restored later.

    The easiest way to save this value is probably to put it in the session.

    Session["myvar"] = dropdown.SelectedIndex;
    

    Your master page can restore this value when the child page loads by doing something like:

    if (!IsPostBack && Session["myvar"] != null) 
        dropdown.SelectedIndex = (int)Session["myvar"];
    

    Another option would be to add the value to the querystring of each url in the treeview.

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

Sidebar

Related Questions

I'm using a few (2 or 3) master pages in my ASP.NET MVC application
I have a view using a master page that contains some javascript that needs
I'm using a MOSS Publishing site with a custom master page. One of our
Using ASP.NET MVC there are situations (such as form submission) that may require a
How can I change the master volume level? Using this code [DllImport (winmm.dll)] public
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
I've been trying to display text using a Quartz context, but no matter what
Using online interfaces to a version control system is a nice way to have
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using TortoiseSVN against VisualSVN I delete a source file that I should not have

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.