Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / January 2006

Tip: Looking for answers? Try searching our database.

Add reference

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bahman - 10 Nov 2005 19:12 GMT
Hello!

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

Thanks!
Phillip Williams - 10 Nov 2005 19:32 GMT
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

Signature

HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com

> Hello!
>
> Quick question: what is the syntax to manually add a reference to a DLL on
> an aspx page?
>
> Thanks!
Bahman - 19 Jan 2006 00:26 GMT
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

> 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:
[quoted text clipped - 12 lines]
> >
> > Thanks!
Bahman - 19 Jan 2006 00:27 GMT
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

> 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:
[quoted text clipped - 12 lines]
> >
> > Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.