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 / February 2006

Tip: Looking for answers? Try searching our database.

How to add a reference?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Befumo - 19 Feb 2006 21:13 GMT
I'm trying to use a third-party postback control
(http://www.obout.com/pb/postback.aspx) which appears to do just what I
need.  It includes a .dll, and some example (aspx and vb) pages.  I added a
reference to the .dll, and it shows up under references. I can browse the
contents in the object browser.  However, when I try to compile, I get a
"Type expected" error on the declarlation line, as shown below:

Imports OboutInc.Postback

Public Class DataProcessing

Inherits Page

Protected obPost As Postback '<--error is here.

Is there something else I have to do to get the compiler to 'see' the
referenced .dll?

Thanks.

Joe
Peter Rilling - 19 Feb 2006 22:01 GMT
Did you include the correct namespace in your code so that it can find the
class?

> I'm trying to use a third-party postback control
> (http://www.obout.com/pb/postback.aspx) which appears to do just what I
[quoted text clipped - 22 lines]
>      ------->>>>>>http://www.NewsDemon.com<<<<<<------
> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Joe Befumo - 20 Feb 2006 01:16 GMT
There is a
Imports OboutInc.Postback

in the .vb -- I'm guessing that this is the equivalent of the namespace tag
in .aspx?

> Did you include the correct namespace in your code so that it can find the
> class?
[quoted text clipped - 25 lines]
>>      ------->>>>>>http://www.NewsDemon.com<<<<<<------
>> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Joe Befumo - 20 Feb 2006 01:16 GMT
There's a namespace declaration in the .aspx but not the .vb (this is a
downloaded example file.). Should it be in the .vb as well?

Joe

> Did you include the correct namespace in your code so that it can find the
> class?
[quoted text clipped - 25 lines]
>>      ------->>>>>>http://www.NewsDemon.com<<<<<<------
>> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Joe Befumo - 20 Feb 2006 01:28 GMT
Got it, I had to fully qualify the type:

Protected obPost As OboutInc.Postback.Postback

that did it.

Thanks to all.

Joe

> I'm trying to use a third-party postback control
> (http://www.obout.com/pb/postback.aspx) which appears to do just what I
[quoted text clipped - 22 lines]
>      ------->>>>>>http://www.NewsDemon.com<<<<<<------
> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

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



©2009 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.