Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET 2.0: master pages and web user controls: reference to a non-shared member requires an object reference

Reply
Thread Tools

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

 
 
bminder
Guest
Posts: n/a
 
      06-24-2005
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


 
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
Master Pages and Usercontrols - object reference not set j-in-uk ASP .Net 1 08-14-2006 10:57 PM
Cross Page Post Back When Using Mixture of Master Pages and Non-Master Pages Jason@webbit.com ASP .Net 1 05-16-2006 02:00 PM
Master Pages Great! But what about Master User Controls? Electrified Research ASP .Net 5 10-11-2005 02:32 PM
asp.net 2005 question re: "reference to a non-shared member requires an object reference" ce ASP .Net 1 06-23-2005 09:15 PM
seeking servlet "Master" keep getting "Master/servlet/Master" not found. Tomcat 5.0.25 Doug McCann Java 1 08-05-2004 09:16 PM



Advertisments