Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > public var, but says Inaccessible due to protection level

Reply
Thread Tools

public var, but says Inaccessible due to protection level

 
 
Jason Shohet
Guest
Posts: n/a
 
      07-31-2003
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


 
Reply With Quote
 
 
 
 
William F. Robertson, Jr.
Guest
Posts: n/a
 
      07-31-2003
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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"is inaccessible due to its protection level" using a public methodof a public class Chip Gore C++ 6 04-10-2008 10:07 PM
RE: Settings inaccessible due to its protection level Walter Wang [MSFT] ASP .Net 2 01-19-2007 05:49 AM
method is inaccessible due to its protection level sck10 ASP .Net 2 08-28-2006 10:56 PM
...is inaccessible due to its protection level. ? Arjen ASP .Net 1 06-11-2005 04:52 PM
microsoft.public.dotnet.faqs,microsoft.public.dotnet.framework,microsoft.public.dotnet.framework.windowsforms,microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb Charles A. Lackman ASP .Net 1 12-08-2004 07:08 PM



Advertisments