I have a page (ASPX) that has a grid on the left side and an embedded web control (ASCX) on the right side. The ascx contains lots of textboxes,labels,etc.

I have added Get/Set properties for each of the controls in the ascx code-behind file. Here's a snippet of the code;

ASPX code-behind:

protected DeficiencyReport DeficiencyRpt1; //reference to ASCX

DeficiencyRpt1.SPRTextBox= "value"; // set new value


Property in ASCX:

public string SPRTextBox {
get {return SPR.Text;}
set {SPR.Text=value;}
}

Everything works fine except that the value is not displayed in the textbox. Can anybody tell me what I'm missing?