A
Alan Silver
Hello,
If I have a page that contains (say) a Literal control and a custom
control, can the code in the custom control set the value of the
Literal?
I tried doing this in the custom control...
Literal litPageNo = (Literal)this.Parent.FindControl("litPageNo");
to get a reference to the Literal, but this came back null. I tried
removing the Parent, but that did the same.
How can this be done? TIA
If I have a page that contains (say) a Literal control and a custom
control, can the code in the custom control set the value of the
Literal?
I tried doing this in the custom control...
Literal litPageNo = (Literal)this.Parent.FindControl("litPageNo");
to get a reference to the Literal, but this came back null. I tried
removing the Parent, but that did the same.
How can this be done? TIA