Solved

ASP.NET - Reference a 3rd party dll from aspx page

Posted on 2009-07-02
4
432 Views
Last Modified: 2013-11-26
I am working in Visual Web Developer 2008 Express and fairly new to Web Development.  I have created a new ASP.NET Web Application Project and I understand the .aspx and .vb architecture.  However in my .aspx page, I would like to reference and use another dll separate from my code behind page.  Is there a way to do this?  Every time I try to reference a method inside of the other dll, I get the error:  '<blah> is not a member of ASP.default_aspx'
0
Comment
Question by:bill_jared
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
abel earned 250 total points
ID: 24762965
Right-click References and select "Add Reference". Select your dll. Then, on top of your code behind page, add the following line:

Imports AssemblyName.OfYourExernalReference.Something

the name after Imports depends on what namespace is used inside your DLL. You can also do it without the "Imports", in which case you have to use the full name (namespace + classname) whenever you use something from your DLL.
0
 
LVL 13

Assisted Solution

by:copyPasteGhost
copyPasteGhost earned 250 total points
ID: 24762992
first you need to add a reference to the dll.
right click on the website in Visual web developer and select add a reference. browse to the ddl location and add it.

Next you will need to add this to the page..

This may help you out..

http://forums.asp.net/p/1096304/1655739.aspx
http://www.vbforums.com/showthread.php?t=553415

Ghost
0
 

Author Closing Comment

by:bill_jared
ID: 31599174
I appreciate it...I thought it was that simple, I had referenced the dll in my project.  However the method I was referencing was not in that dll...Duh!  So I added a reference to another...Thank you to you both!
0
 
LVL 39

Expert Comment

by:abel
ID: 24763212
you're welcome, thanks for the feedback and glad you've located the culprit :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now