If you don't want to use
FindControl
and want to have a strongly typed variable in your code ,
Add a
TextBox
type
property
to your user control and return the textbox control reference in its
get
method :
public TextBox InternalTextbox
{
get
{
return TextBox1;
}
}
By this way you grant outsiders of your user control, the access to internal Textbox1 control.