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