So, let’s start from the beginning. Let’s assume that we’re building a sample web application to test our control output. We’ll create a brand new solution in Visual Studio 2012 along with an ASP.NET Empty Web Application. After the project is created, we’ll add another new project: an ASP.NET Server Control project called ‘OurSuperCoolControlSuite’.
Now, let’s compile our server control project OurSuperCoolControlSuite.
Going back to our ASP.NET Web project, let’s add a new ASP.NET WebForm called default.aspx. We’ll switch to design mode as this refreshes the Toolbox window. We should now see our control appear at the top of the toolbox as shown below:
So, let’s check out the rendered markup:
So, if you’d like to skip right to the demo without building it yourself, feel free to download the solution using the link below.
If you want to view or submit comments you must accept the cookie consent.