Results 1 to 36 of 36

Thread: [RESOLVED] Calling a Sub in a Different aspx.vb File

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2009
    Posts
    37

    Resolved [RESOLVED] Calling a Sub in a Different aspx.vb File

    I need to call a sub which must be contained within a separate web page, but even though it is declared as public, when I call it like this:

    Code:
    Cart.addMovie(ByVal title As String, ByVal format As String, _
                          ByVal copies As Integer, ByVal price As Double)
    I'm getting this error:

    Code:
    Error	1	Reference to a non-shared member requires an object reference.	C:\Documents and Settings\John Wesley Cooper\My Documents\College\cis259\MovieStore\MovieStore\Default.aspx.vb	48	9	MovieStore
    ...so what must I do to call this procedure as I need to?
    Last edited by jwesleycooper; Jan 11th, 2010 at 01:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width