Web Control Library (Managed Code)
This topic applies to:
Edition |
Visual Basic |
C# |
F# |
C++ |
Web Developer |
---|---|---|---|---|---|
Express |
|||||
Pro, Premium, and Ultimate |
The Web Control Library project template creates a DLL. Because the class library is a DLL, you cannot run it directly. You must create a 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 a 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 the host application and choose Add Reference.
Add a reference to the web control project.