|
 |
aspx_beginners thread: Namespaces ??
Message #1 by Samir.Jasani@l... on Mon, 24 Sep 2001 16:30:30 +0530
|
|
Hi all..
Can someone please help me with this ??
How does the compiler know the name of the dll/exe from the value of the
namespace specified in import directive of ASPX ??
Do we have to put reference somewhere ??
and how about the same when we have "Using ..." statement in C#
Thanks,
Samir
Message #2 by Samir.Jasani@l... on Tue, 25 Sep 2001 16:07:00 +0530
|
|
Hi Roger..
Got the point..
But am still confused about the import directive..
now if i want to import a namespace which has been compiled to say test.dll
in some other class or an ASPX page, how does the system search for the
namespace ???
just to give an analogous.. in Java we have classpath and whenever some
class tries to import a package, it searches all the directories defined in
classpath...
So do we have something similar to classpath ??
Thanks,
Samir
"Roger Heckman"
<roger.heckman@t... To: <Samir.Jasani@l...>
stems.com> cc:
Subject: Re: Namespaces ??
09/24/2001 09:19 PM
The reference is in the page you write to build the custom control. I'll
have to let you translate this to C#:
Namespace MyCustomControls
Public Class CustomControl1: Inherits Control....
etc.
The compiler gets the namespace from the code you wrote, and compiles the
dll with that information. As for the name of the dll being compiled, it
looks to me like you specify that in the compile command. Again using a vb
example:
vbc /t:library /out:..\bin\CustomControls.dll /r:System.dll
/r:System.Web.dll CustomControl1.vb
(I suppose your control would be CustomControl.c or .cs)
Hope that helps
Roger
<Samir.Jasani@l...> wrote in message
news:<104496@a..._beginners>...
>
> Hi all..
>
> Can someone please help me with this ??
>
> How does the compiler know the name of the dll/exe from the value of the
> namespace specified in import directive of ASPX ??
>
> Do we have to put reference somewhere ??
>
> and how about the same when we have "Using ..." statement in C#
>
> Thanks,
> Samir
Message #3 by ejacobse@a... on Fri, 28 Sep 2001 17:38:12
|
|
You specify the assembly(dll) name in a web.config file which is in XML
format. Like:
<add assembly=" dll name "/>
Hope this helps.
eric
> Hi all..
>
> Can someone please help me with this ??
>
> How does the compiler know the name of the dll/exe from the value of the
> namespace specified in import directive of ASPX ??
>
> Do we have to put reference somewhere ??
>
> and how about the same when we have "Using ..." statement in C#
>
> Thanks,
> Samir
>
|
|
 |