public var, but says Inaccessible due to protection level

Discussion in 'ASP .Net' started by Jason Shohet, Jul 31, 2003.

  1. Jason Shohet

    Jason Shohet Guest

    I have a line:

    public System.Web.UI.HtmlControls.HtmlTable bldgInfo;


    Even though its public, for some reason every so often, .NET tells us that
    bldgInfo table is inaccessible due to the protection level. Its an html
    table -- but serverside. And it sits on a ascx (control).

    When we try to access that table from somewhere else, we get that error.

    Any ideas?

    Jason Shohet
     
    Jason Shohet, Jul 31, 2003
    #1
    1. Advertising

  2. Where are you trying to access it from? Are you trying to access it from
    another page?

    Why?

    bill

    " Jason Shohet" <> wrote in message
    news:...
    > I have a line:
    >
    > public System.Web.UI.HtmlControls.HtmlTable bldgInfo;
    >
    >
    > Even though its public, for some reason every so often, .NET tells us that
    > bldgInfo table is inaccessible due to the protection level. Its an html
    > table -- but serverside. And it sits on a ascx (control).
    >
    > When we try to access that table from somewhere else, we get that error.
    >
    > Any ideas?
    >
    > Jason Shohet
    >
    >
     
    William F. Robertson, Jr., Aug 1, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arjen
    Replies:
    1
    Views:
    5,114
    Arjen
    Jun 11, 2005
  2. sck10
    Replies:
    2
    Views:
    36,585
    sck10
    Aug 28, 2006
  3. Iain
    Replies:
    5
    Views:
    672
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Feb 20, 2007
  4. Walter Wang [MSFT]
    Replies:
    2
    Views:
    1,328
    Walter Wang [MSFT]
    Jan 19, 2007
  5. Chip Gore
    Replies:
    6
    Views:
    2,372
    Ben Voigt [C++ MVP]
    Apr 10, 2008
Loading...

Share This Page