PC Review


Reply
Thread Tools Rate Thread

2 file namespace won't work

 
 
musosdev
Guest
Posts: n/a
 
      25th Nov 2007
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.

 
Reply With Quote
 
 
 
 
musosdev
Guest
Posts: n/a
 
      25th Nov 2007
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.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using obj.Namespace(sourceFileName) Namespace(DestinationFilename)*.Items and then opening the xls file which creates a Temp Folder inside Temp Yuvraj Microsoft Excel Misc 1 3rd May 2009 12:33 PM
Problem using obj.Namespace(sourceFileName) Namespace(DestinationFilename).Itemsand then opening the xls file which creates a Temp Folder inside Temp Yuvraj Microsoft Excel Misc 3 3rd May 2009 11:59 AM
Nant - cannot successfully get xmlpoke to work with xml containing namespace information chriscomer Microsoft ASP .NET 0 23rd Nov 2005 08:37 PM
HELP ASAP....Windows Service Errors....passing information from .cs file to another .cs file in same namespace Tressa Microsoft C# .NET 1 18th Nov 2004 12:55 PM
Importing namespace does not work?? al Microsoft VB .NET 4 27th Feb 2004 03:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 PM.