transferring data from masterpage to content page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abehm
    New Member
    • May 2007
    • 35

    transferring data from masterpage to content page

    help.
    i'm trying to show the selectedindex from a dropdownlist of the masterpage in a label on the content page. I've tried doing (DropDownList)M aster.FindContr ol() as shown in other posts, but it comes up as null. can anyone explain this to me please?
  • abehm
    New Member
    • May 2007
    • 35

    #2
    Code:
     public void LoadTestBoothData()
        {
            DropDownList testBooth;
            testBooth = (DropDownList)Master.FindControl("ddTestBooth");
            this.lblVertical.Text = testBooth.SelectedIndex.ToString();
        }

    Comment

    • abehm
      New Member
      • May 2007
      • 35

      #3
      also, I have 2 nested masterpages. i'm not sure if that makes a difference or not. can anyone help me?

      Comment

      Working...