Namespaces


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Namespaces

  1. #1
    Join Date
    May 2006
    Posts
    22

    Namespaces

    Hi, i have a small problem with namespaces when using Asp.Net
    The problem is that if i don't use namespaces in my c# files then everything works great, however if i try to put the file inside a namespace, i get this error when trying to build:

    Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)

    Now i am almost certain that this because i need to somehow define the .aspx file with the same namespace, and i assume i need to use some directive for that (like <%@ Page Namespace="something"%>) but i can't find which (i've searched over msdn and couldn't find anything there)

    is there any1 out there who knows the answer?

    tx in advance,
    Me

  2. #2
    Join Date
    Jul 2006
    Location
    India
    Posts
    5

    Hi

    Please Give ur code what u r trying .
    Mention what u want to plce which code in which file .
    I trying and giving ans. to u.

Similar Threads

  1. Namespaces across projects...
    By Paul Mc in forum .NET
    Replies: 7
    Last Post: 01-08-2002, 05:57 AM
  2. Missing namespaces?
    By Dave in forum .NET
    Replies: 1
    Last Post: 10-22-2001, 05:53 PM
  3. XML namespaces and patterns
    By Marcus in forum XML
    Replies: 1
    Last Post: 01-11-2001, 01:39 PM
  4. INHERITS and NAMESPACES - VB, ASP.NET
    By Paul Murphy in forum ASP.NET
    Replies: 1
    Last Post: 11-29-2000, 03:11 PM
  5. support for namespaces on attribute value
    By Noga Atsil in forum XML
    Replies: 1
    Last Post: 11-21-2000, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center