Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2009-07-02
4
446 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

808 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