asp.net 2005 question re: "reference to a non-shared member requires an object reference"

C

ce

I've got a class "A" which has a shared (static) method "Test". In an
asp.net page i can use it like so:

<td><%=A.Test()%></td>

and all is fine, but if instead of a page it's an ascx (control) then i get
the following error in the same scenario:

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

Any ideas why?

I'm using vb.net 2005 if that's any significance.

Thanks,

Chris
 
C

ce

Also, I'm using IIS 5.1 with ASP.NET 2.0 Beta 2.


Brent Minder BugMonitor.com, Inc. PO Box 1168 Duluth, GA 30096 Phone
404.234.0540 We make your software better.
 

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

Ask a Question

Top