Adding a User Control Registers user control for use on a page Use the @ Register directive to include a user control in an ASP.NET Page Insert the user control in a Web Form Use Get and Set properties of the user control <%@ Register TagPrefix= demo TagName= validNum Src= numberbox.ascx %> <%@ Register TagPrefix= demo TagName= validNum Src= numberbox.ascx %> num1.pNum = 5; //uses Set x = num1.pNum; //uses Get num1.pNum = 5; //uses Set x = num1.pNum; //uses Get
{}