how to get methods of a class file from another aspx file in c#.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pmMano
    New Member
    • Nov 2008
    • 1

    how to get methods of a class file from another aspx file in c#.net

    Hi,

    I wrote all common methods of my project are in a Class file named as "MyClass.cs ". But I'm not able to access those methods from my aspx file. Both the class file & aspx file are in same project only.

    But I can access those methods if the class file is inside the folder "App_Data".

    Please guide me what I'm missing.

    Thanks...
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Do you only have one project in your solution? If so make sure you are using the public keyword on the methods in your class. If you solution contains more than one project you will need to add a project reference so that the class is accessible.

    Nathan

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      What version of Visual Studio are you using?


      -Frinny

      Comment

      Working...