Accessing a user control from another user control RRS feed

  • Question

  • User113730038 posted

    I have a web page that has 2 user controls.  Header and Summary.  When I make a change in the Header control, I need to change a label on the Summary control.  The page has all the controls loaded.  I have tried every version of this:

    ucUBSummary control = (ucUBSummary)Page.FindControl("ucUBSummary");
    Label lbl = control.FindControl("lbReleaseStatus") as Label;
    lbl.Text = "Completed";

    I then need to run a method on the Summary control to refresh the control itself.  May not need to do this if the label shows up as I update it.  Any help is greatly appreciated.

    Monday, August 26, 2019 7:48 PM


All replies