How to add a reference?

  • Thread starter Thread starter Joe Befumo
  • Start date Start date
J

Joe Befumo

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
 
Did you include the correct namespace in your code so that it can find the
class?
 
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

Peter Rilling said:
Did you include the correct namespace in your code so that it can find the
class?
 
There is a
Imports OboutInc.Postback

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





Peter Rilling said:
Did you include the correct namespace in your code so that it can find the
class?
 
Got it, I had to fully qualify the type:

Protected obPost As OboutInc.Postback.Postback

that did it.



Thanks to all.



Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top