.aspx .
<%@ Register TagPrefix="Test" TagName="TestControl" Src="Test.ascx" %>
, . TagPrefix , TagName - , Src - .
,
<Test:TestControl id="TestControl" runat="Server"/>
.aspx:
.aspx- , javascript aspx-.
test.ascx , .aspx, .ascx.
public string FirstName
{
get{return txtFirstName.Text;}
set{txtFirstName.Text = value;}
}
.aspx
TestControl.FirstName
You can set the FirstName of the control from aspx page using
TestControl.FirstName = "Suzzanne"
: ref