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 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

in my application i am using master page and child pages. my requirement is
I'm using Master Page in my ASP.net application, in the master page I put
Am using master page in my asp.net application, and I want to reset the
We are using Sharepoint 2007 In which on master page we have Asp Image
I'm using ASP.NET 4.0 with a LoginStatus control in a Master page. When the
How can I get a master page for asp.net with 3 sections using divs
I've got a master page in a root folder of an asp.net application and
I'm using Umbraco and every page is a master page which is a sub
I am having a problem in using Ajax methods.I have a master page and
I am using master page in which menu is generating dynamically according to user

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.