Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Regarding Assembly


Message #1 by Sandra Gopikrishna <sgopikrishna@e...> on Thu, 9 Nov 2000 10:50:17 +0000 (GMT+00:00)
Can any one help me in finding out the use of the key word assembly as 

depicted in ASP+. What is the difference between assembly and Namespace.



Thanx in advance,

S Gopikrishna











Message #2 by "dave" <support@1...> on Thu, 9 Nov 2000 09:30:07 -0500
Hi Sandra,

Here are two articles from codejunkies.net that talk about namespaces and assemblies.  



What Is An Assembly?

http://www.aspnextgen.com/tutorials.aspx?tutorialid=10



What's In A Namespace

http://www.aspnextgen.com/tutorials.aspx?tutorialid=11



Hope this helps,

Dave

http://www.123aspx.com

The Largest ASP+ Directory!



---------- Original Message ----------------------------------

From: Sandra Gopikrishna <sgopikrishna@e...>

Reply-To: "ASP+" <aspx@p...>

Date: Thu, 9 Nov 2000 10:50:17 +0000 (GMT+00:00)



>Can any one help me in finding out the use of the key word assembly as 

>depicted in ASP+. What is the difference between assembly and Namespace.

>

>Thanx in advance,

>S Gopikrishna

>

>

>

>

Message #3 by "Roger M. Taylor" <rogertaylor@f...> on Thu, 09 Nov 2000 11:09:22 -0500
At 10:50 AM 11/9/2000 +0000, you wrote:

>Can any one help me in finding out the use of the key word assembly as

>depicted in ASP+. What is the difference between assembly and Namespace.

>

>Thanx in advance,

>S Gopikrishna





ASSEMBLIES

An assembly is compiled code. Close to a DLL or EXE but more powerful.



Lets look at a code sample to illustrate differences

http://www.aspng.com/learn/nethttp.aspx



<%@ Assembly Name="System.Net" %>

The Assembly statement "links" in the library/objects "system.net"



NAMESPACES

The Namespace lets you use the shorter name.



Dim HttpWResp as system.net.HTTPWebresponse

Dim sr As system.io.StreamReader



is the verbose way to declare/create an object.



<%@ Import Namespace="System.Net" %>

<%@ Import Namespace="System.IO" %>



then makes this possible =>



Dim HttpWResp as HTTPWebresponse

Dim sr As StreamReader





FAQ: WHY DON'T I HAVE TO USE ASSEMBLYS FOR System.Data, System.ADO, etc.



The config.web automatically assigns all .aspx scripts get certain 

assemblies by default.



More can be learned about config.web at:

http://www.asplists.com/asplists/aspngconfig.asp




  Return to Index