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