We will build a small web project that uses usercontrol to add two numbers and show the result. These two numbers come from the parent page (.aspx), through specific interface.
1. For this example, create a new ASP.NET Web application project on Visual Studio.
2. On Default.aspx page, add two labels and textboxes (“txtNumber1” and “txtNumber2”. Your page should look like this: