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. Advertisements

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

    Why?

    bill
     
    William F. Robertson, Jr., Aug 1, 2003
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.