Add reference

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!

Quick question: what is the syntax to manually add a reference to a DLL on
an aspx page?

Thanks!
 
If the dll is in the local bin folder of the application and you are not
using VS.Net then add this tag on the top of your aspx page:

<%@ Import namespace="MyLibrary"%>

If you are using VS.Net then use Project->Add Reference->Browse to pick up
the dll into your project and in the codebehind class add
Imports MyLibrary 'VB syntax
using MyLibrary; //C# syntax
 
Phillip,

I tried many different variations. None worked.

What I have is this:

<%@ Import namespace="Ajax.dll"%>

where the dll is in the bin folder underneath.

I need a clue how to add reference to a DLL on the page directly.

-Bahman
 
Phillip,

I tried many variations of this:

<=% import namespace = "ajax.dll">

none of which worked whatever folder I put it in.

I would need some clue how to reference a dll on a page directly.

-Bahman
 
Back
Top