private/public sub?

Discussion in 'ASP .Net Security' started by rom, Nov 9, 2004.

  1. rom

    rom Guest

    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???
    rom, Nov 9, 2004
    #1
    1. Advertising

  2. rom

    rom Guest

    other problem!

    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!


    >-----Original Message-----
    >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???
    >.
    >
    rom, Nov 9, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman
    Replies:
    1
    Views:
    1,344
    smith
    Dec 8, 2004
  2. SpamProof
    Replies:
    0
    Views:
    553
    SpamProof
    Oct 21, 2003
  3. qazmlp
    Replies:
    19
    Views:
    789
    Daniel T.
    Feb 4, 2004
  4. DaveLessnau
    Replies:
    3
    Views:
    428
    Howard
    May 16, 2005
  5. earthwormgaz
    Replies:
    6
    Views:
    451
    earthwormgaz
    Jun 1, 2010
Loading...

Share This Page