2 file namespace won't work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?bXVzb3NkZXY=?=

    #1

    2 file namespace won't work

    Hi

    I have a namespace spanning 2 files. One is an aspx.cs (so it has an aspx
    page too, and a partial class) page, and the other is a normal .cs file. They
    are both in the same directory.

    Both have the same namespace {} definition, and yet my aspx.cs page cannot
    see classes from the .cs class file.

    I've tried added a using statement, but that had no effect.

    What's going on!?!

    Tnx, Dan.

  • =?Utf-8?B?bXVzb3NkZXY=?=

    #2
    RE: 2 file namespace won't work

    Fixed. I had to put the cs file that wasn't part of the partial page into
    App_Code.

    Sorry to interrupt :)


    "musosdev" wrote:
    Hi
    >
    I have a namespace spanning 2 files. One is an aspx.cs (so it has an aspx
    page too, and a partial class) page, and the other is a normal .cs file. They
    are both in the same directory.
    >
    Both have the same namespace {} definition, and yet my aspx.cs page cannot
    see classes from the .cs class file.
    >
    I've tried added a using statement, but that had no effect.
    >
    What's going on!?!
    >
    Tnx, Dan.
    >

    Comment

    Working...