Just add the name space declaration around each class in your project

in C#
Namespace MyNamepace.Rocks{

//code
}

You can also set a root namespace in your project file, so if all your
namespaces begin with MyNamspace, you can set it there, and then you
only need to include the unique part in each declaration

Namespace Rocks{

//code
}

and it will compile to MyNamespace.Rocks

In terms of your secodn question, sounds like you have not declared
the label in the code, or have declared it private, so it is not
accessable to inheriting classes.  Hard to tell without your code.


On 6/20/05, osos_bahgat <[EMAIL PROTECTED]> wrote:
> Hi all
> i want to know how to create multible namespaces in vs.net 2003 so i
> can use it in my project
> say that i've a web project it consist of some modules
> i want to create a namespaces like so as to be like this:
> using MyProject.MyModule.Web;
> using MyProject.MyModule2.account;
> and so on...
> 
> also i've another question in vs.net 2005 :
> when i'm creating a user control it's supposed to inherit
> fron .ascx.cs file i.e: when i'm making a lable say <asp:label id
> = "MyLabel"/>
> when i want to call it in the ascx.cs file i want to write
> MyLabel.Text = some code
> it's supposed when i'm typing the "DOT" after MyLabel it lists all
> properties in the label
> but when i press the "DOT" it doesn't list anything; that means the
> page is not inherited from the .ascx page
> can anyone tell me how can i fix this?
> any suggestion is appriciated.
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to