STEP 1: Add a reference to the DLL to your website.
- In Solution Explorer, select your Web project.
- On the Website menu (for Web site projects) or the Project menu (for Web application projects), choose Add Reference. Alternatively, you can right-click the name of your Web project in Solution Explorer and then select Add Reference.
The Add Reference dialogue box is displayed.
- Select the Browse tab.
- Browse to the folder that contains the assembly you want to reference, select the assembly, and then click OK.
Adding a reference in this way ensures that all file dependencies (debug files, XML document files, and so on) are copied.
STEP 2: Use the public class from the DLL on you asp.net pageUse Imports to utilize the namespace from your DLL, then simply use Dim and New to instantiate a new object using a public class from the DLL. ie:
Dim myObject As New dllPublicClass
If you just use the Dim statement Visual Web Developer should prompt you to add the Imports statement.