Web Control Library (Managed Code)
This topic applies to:
Pro and Team
Does not apply
Command or commands hidden by default.
The Web Control Library project template creates a DLL. Because the class library is a DLL, you cannot run it directly. You must create an ASP.NET page that embeds the control. For more information, see Web Control Library Template.
To debug a Web Control Library (Method 1)
Open an existing Web Control Library project, or create a new one.
Create an ASP.NET page that embeds the control.
In the Web site that is hosting the ASP.NET test harness, create a subdirectory called /Code.
Copy the source code for the control into the /Code subdirectory.
Open the source code in the /Code subdirectory and set breakpoints.
Open a browser window with a URL that points to the test harness. A breakpoint in the control will be hit, and you can start debugging.
To debug a Web Control Library (Method 2)
Create the host application project and the web control project in the same solution.
In Solution Explorer, right-click on the host application and choose Add Reference from the shortcut menu.
Add a reference to the web control project.