I have a content page. I am updating the asp value: Homepage label from the content page. the value is updated, but the updated value is not displayed. I tried two methods using
1). defining a property (on the main page) for setting and getting the label value. eg
public string setErrorMsg { get { return lbl1.Text; } set { lbl1.Text = value; } }
2) by selecting the control (homepage label) on the content page and setting your text. eg.
Label lblMasterError = this.Page.Master.FindControl("lbl1") as Label; lblMasterError.Text="text is updated form content page";
both update the value if I see it in debug mode, but the updated label value does not appear on the content page. What could be the possible reasons for this behavior?
source share