private/public sub?

R

rom

I have the following like in an asp.net application in the
vb.net codebehind page:

Compiler Error Message: BC30390: 'Care.Search.Private Sub
saveFatherGroup_ServerClick(sender As Object, e As
System.EventArgs)' is not accessible in this context
because it is 'Private'.

The problem is that the sub is PUBLIC! here it is as I
copied it from the vb.net page:
Public Sub saveFatherGroup_ServerClick(ByVal sender As
System.Object, ByVal e As System.EventArgs)

Any ideas???
 
R

rom

I read on the web that the problem might be that the name
of the function is already taken by another namespace so I
changed it and now it's ok. Not I get an error that a
function I'm using was not declared. the problem is that
it is declared, it is public, and I tried several names...

Thanks!
 

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

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top