467,920 Members | 1,250 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,920 developers. It's quick & easy.

ASP.NET 2.0: master pages and web user controls: reference to a non-shared member requires an object reference

Hello,

Why would a web user control and master page not have access to a shared
method in a library, when all regular pages do?

For example, i have a library which has public class AAA. Public class AAA
has a shared method ReturnString() which the asp.net pages can use fine, but
the master page and web user controls cannot.

VS2005's source view shows that the master page and web user controls have
an error:

"reference to a non-shared member requires an object reference"

when doing <%=AAA.ReturnString()%>, but the "normal" web pages dont have
this issue.

It's got me stumped.

Thanks for any help,

bminder
Nov 19 '05 #1
  • viewed: 1107
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Michael Herman \(Parallelspace\) | last post: by
5 posts views Thread by Electrified Research | last post: by
1 post views Thread by =?Utf-8?B?TGFycnkgRXBu?= | last post: by
reply views Thread by Daniel Magliola | last post: by
reply views Thread by robgallen | last post: by
10 posts views Thread by Cirene | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.