<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.NET_Tutorial%2FDevelopment%2FAssembly</id>
		<title>ASP.NET Tutorial/Development/Assembly - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.NET_Tutorial%2FDevelopment%2FAssembly"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/Development/Assembly&amp;action=history"/>
		<updated>2026-04-29T18:51:10Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.NET_Tutorial/Development/Assembly&amp;diff=2603&amp;oldid=prev</id>
		<title> в 15:30, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/Development/Assembly&amp;diff=2603&amp;oldid=prev"/>
				<updated>2010-05-26T15:30:57Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:30, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.NET_Tutorial/Development/Assembly&amp;diff=2604&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/Development/Assembly&amp;diff=2604&amp;oldid=prev"/>
				<updated>2010-05-26T11:56:26Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Adding an Assembly to the Global Assembly Cache==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
All the assemblies that make up the .NET Framework class library are contained in the Global Assembly Cache. &lt;br /&gt;
Any assembly located in the Global Assembly Cache can be referenced by any application running on a server.&lt;br /&gt;
The Global Assembly Cache&amp;quot;s physical location is at the following path:&lt;br /&gt;
C:\WINDOWS\assembly&lt;br /&gt;
Before you can add an assembly to the Global Assembly Cache, you must add a strong name to the assembly. &lt;br /&gt;
A strong name is similar to a GUID. You use a strong name to provide your assembly with a universally unique identifier.&lt;br /&gt;
You can generate a strong name by using the sn.exe command-line tool like this:&lt;br /&gt;
sn.exe -k KeyPair.snk&lt;br /&gt;
Executing this command creates a new file named KeyPair.snk, which includes a new random public/private key pair.&lt;br /&gt;
You can compile an assembly that includes a strong name by executing the Visual Basic .NET command-line compiler like this:&lt;br /&gt;
csc /t:library /keyfile:KeyPair.snk /recurse:*.cs /out:MyLibrary.dll&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Adding comments to a component.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/// &amp;lt;summary&amp;gt;&lt;br /&gt;
/// Represents an employee of Acme.ru&lt;br /&gt;
/// &amp;lt;/summary&amp;gt;&lt;br /&gt;
public class Employee&lt;br /&gt;
{&lt;br /&gt;
    private string _firstName;&lt;br /&gt;
    private string _lastName;&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// The employee first name&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    public string FirstName&lt;br /&gt;
    {&lt;br /&gt;
        get { return _firstName; }&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// The employee last name&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    public string LastName&lt;br /&gt;
    {&lt;br /&gt;
        get { return _lastName; }&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Returns an employee from the database&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    /// &amp;lt;param name=&amp;quot;id&amp;quot;&amp;gt;The unique employee identifier&amp;lt;/param&amp;gt;&lt;br /&gt;
    /// &amp;lt;returns&amp;gt;An instance of the Employee class&amp;lt;/returns&amp;gt;&lt;br /&gt;
    public static Employee getEmployee(int id)&lt;br /&gt;
    {&lt;br /&gt;
        return null;&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Initializes an employee&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    /// &amp;lt;param name=&amp;quot;firstName&amp;quot;&amp;gt;First Name&amp;lt;/param&amp;gt;&lt;br /&gt;
    /// &amp;lt;param name=&amp;quot;lastName&amp;quot;&amp;gt;Last Name&amp;lt;/param&amp;gt;&lt;br /&gt;
    public Employee(string firstName, string lastName)&lt;br /&gt;
    {&lt;br /&gt;
        _firstName = firstName;&lt;br /&gt;
        _lastName = lastName;&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Building Basic Components==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
File: HelloWorld.cs&lt;br /&gt;
public class HelloWorld&lt;br /&gt;
{&lt;br /&gt;
    public string SayMessage()&lt;br /&gt;
    {&lt;br /&gt;
        return &amp;quot;Hello World!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
File: ShowHelloWorld.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.1//EN&amp;quot;&lt;br /&gt;
&amp;quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    void Page_Load()&lt;br /&gt;
    {&lt;br /&gt;
        HelloWorld objHelloWorld = new HelloWorld();&lt;br /&gt;
        lblMessage.Text = objHelloWorld.SayMessage();&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Show Hello World&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;asp:Label&lt;br /&gt;
        id=&amp;quot;lblMessage&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Building Component Libraries by Using the C# Command-Line Compiler==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
The C# compiler is located at the following path:&lt;br /&gt;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe&lt;br /&gt;
The Visual Basic command-line compiler is located at the following path:&lt;br /&gt;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe&lt;br /&gt;
You can use the csc.exe tool to compile any C# source file like this:&lt;br /&gt;
csc /t:library SomeFile.cs&lt;br /&gt;
&lt;br /&gt;
The /t (target) option causes the compiler to create a component library and not a Console or Windows application. &lt;br /&gt;
When you execute this command, a new file named SomeFile.dll is created, which is the compiled assembly.&lt;br /&gt;
To compiling a single file, you can compile all the source code files in a folder (and every subfolder) like this:&lt;br /&gt;
csc /t:library /recurse:*.cs /out:MyLibrary.dll&lt;br /&gt;
The /recurse option causes the compiler to compile the contents of all the subfolders. &lt;br /&gt;
The /out option provides a name for the resulting assembly.&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Components and Dynamic Compilation==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
Any component in the App_Code folder is compiled in the same way as an ASP.NET page. &lt;br /&gt;
App_Code folder are compiled into a new assembly and saved to the Temporary ASP .NET Files folder, located at the following path:&lt;br /&gt;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\[application name]&lt;br /&gt;
You can add as many subfolders to the App_Code folder as you need to organize your components.&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Component with Property==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
File: HelloWorld.cs&lt;br /&gt;
using System;&lt;br /&gt;
&lt;br /&gt;
public class PropertyHelloWorld&lt;br /&gt;
{&lt;br /&gt;
    private string _message;&lt;br /&gt;
    public string Message&lt;br /&gt;
    {&lt;br /&gt;
        get&lt;br /&gt;
        {&lt;br /&gt;
            return _message;&lt;br /&gt;
        }&lt;br /&gt;
        set&lt;br /&gt;
        {&lt;br /&gt;
            if (value.Length &amp;gt; 5)&lt;br /&gt;
                throw new Exception(&amp;quot;Message too long!&amp;quot;);&lt;br /&gt;
            _message = value;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    public string SayMessage()&lt;br /&gt;
    {&lt;br /&gt;
        return _message;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
            &lt;br /&gt;
File: Default.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.1//EN&amp;quot;&lt;br /&gt;
&amp;quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    void Page_Load()&lt;br /&gt;
    {&lt;br /&gt;
        PropertyHelloWorld objPropertyHelloWorld = new PropertyHelloWorld();&lt;br /&gt;
        objPropertyHelloWorld.Message = &amp;quot;Hello World!&amp;quot;;&lt;br /&gt;
        lblMessage.Text = objPropertyHelloWorld.SayMessage();&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Show Property Hello World&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;asp:Label&lt;br /&gt;
        id=&amp;quot;lblMessage&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Declaring Fields and Properties==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
File: FieldHelloWorld.cs&lt;br /&gt;
public class FieldHelloWorld&lt;br /&gt;
{&lt;br /&gt;
    public string Message;&lt;br /&gt;
    public string SayMessage()&lt;br /&gt;
    {&lt;br /&gt;
        return Message;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
File: Default.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.1//EN&amp;quot;&lt;br /&gt;
&amp;quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    void Page_Load()&lt;br /&gt;
    {&lt;br /&gt;
        FieldHelloWorld objFieldHelloWorld = new FieldHelloWorld();&lt;br /&gt;
        objFieldHelloWorld.Message = &amp;quot;Good Day!&amp;quot;;&lt;br /&gt;
        lblMessage.Text = objFieldHelloWorld.SayMessage();&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Show Field Hello World&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;asp:Label&lt;br /&gt;
        id=&amp;quot;lblMessage&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Declaring Methods==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
File: StaticHelloWorld.cs&lt;br /&gt;
public class StaticHelloWorld&lt;br /&gt;
{&lt;br /&gt;
    public static string SayMessage()&lt;br /&gt;
    {&lt;br /&gt;
        return &amp;quot;Hello World!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
File: ShowStaticHelloWorld.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.1//EN&amp;quot;&lt;br /&gt;
&amp;quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    void Page_Load()&lt;br /&gt;
    {&lt;br /&gt;
        lblMessage.Text = StaticHelloWorld.SayMessage();&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Show Shared Hello World&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;asp:Label&lt;br /&gt;
        id=&amp;quot;lblMessage&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Load server side assembly==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ Import Namespace=&amp;quot;System.Text&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ Import Namespace=&amp;quot;System.Reflection&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&lt;br /&gt;
  &amp;lt;script language=&amp;quot;C#&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    private string GetAssemblyInfo()&lt;br /&gt;
    {&lt;br /&gt;
      StringBuilder sb = new StringBuilder();&lt;br /&gt;
      try&lt;br /&gt;
      {&lt;br /&gt;
        string assemblyFile = @&amp;quot;C:\WINNT\Microsoft.NET\Framework\v1.0.3705\mscorlib.dll&amp;quot;;&lt;br /&gt;
        Assembly assemblyInfo = Assembly.LoadFrom(assemblyFile);&lt;br /&gt;
        sb.Append(&amp;quot;CodeBase: &amp;quot;);&lt;br /&gt;
        sb.Append(assemblyInfo.CodeBase);&lt;br /&gt;
        sb.Append(&amp;quot;&amp;lt;br&amp;gt;Location: &amp;quot;);&lt;br /&gt;
        sb.Append(assemblyInfo.Location);&lt;br /&gt;
        sb.Append(&amp;quot;&amp;lt;br&amp;gt;FullName: &amp;quot;);&lt;br /&gt;
        sb.Append(assemblyInfo.FullName);&lt;br /&gt;
        sb.Append(&amp;quot;&amp;lt;br&amp;gt;Manifest Resource Names: &amp;quot;);&lt;br /&gt;
        &lt;br /&gt;
        string[] resourceNames = assemblyInfo.GetManifestResourceNames();&lt;br /&gt;
        for (int i=0; i&amp;lt;resourceNames.Length; i++)&lt;br /&gt;
        {&lt;br /&gt;
          string name = resourceNames[i];&lt;br /&gt;
          if (i&amp;gt;0) sb.Append(&amp;quot;,&amp;quot;);&lt;br /&gt;
          sb.Append(name);&lt;br /&gt;
        }&lt;br /&gt;
        Type[] types = assemblyInfo.GetTypes();&lt;br /&gt;
        foreach (Type typeInfo in types) &lt;br /&gt;
        {&lt;br /&gt;
          sb.Append( &amp;quot;&amp;lt;h2&amp;gt;&amp;quot; + typeInfo.FullName + &amp;quot;&amp;lt;/h2&amp;gt;&amp;quot;);&lt;br /&gt;
          sb.Append(&amp;quot;Number of Constructors: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.GetConstructors().Length.ToString());&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;Number of Properties: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.GetProperties().Length.ToString());&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;Number of Fields: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.GetFields().Length.ToString());&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;Number of Events: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.GetEvents().Length.ToString());&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;Number of Methods: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.GetMethods().Length.ToString());&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;Is Class: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.IsClass);&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;Is Interface: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.IsInterface);&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;Is Enum: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.IsEnum);&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;Attributes: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.Attributes);&lt;br /&gt;
          sb.Append(&amp;quot;&amp;lt;br&amp;gt;GUID: &amp;quot;);&lt;br /&gt;
          sb.Append(typeInfo.GUID.ToString());&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      catch (Exception ex)&lt;br /&gt;
      {&lt;br /&gt;
        sb.Append( &amp;quot;Error: &amp;quot; + ex.ToString() ) ;&lt;br /&gt;
      }&lt;br /&gt;
      &lt;br /&gt;
      return sb.ToString();&lt;br /&gt;
    }&lt;br /&gt;
    private void RetrieveInfo_Click(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      OutputClass.Text = GetAssemblyInfo();&lt;br /&gt;
    }&lt;br /&gt;
  &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Reflect Class&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;ReflectClass&amp;quot; method=&amp;quot;post&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;asp:button id=&amp;quot;RetrieveInfo&amp;quot; onclick=&amp;quot;RetrieveInfo_Click&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot; Retrieve Assembly Info &amp;quot;&amp;gt;&amp;lt;/asp:button&amp;gt;&lt;br /&gt;
      &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
      &amp;lt;asp:label id=&amp;quot;OutputClass&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:label&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Make an assembly available to an ASP.NET application==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
You can add the assembly to the application&amp;quot;s /Bin folder.&lt;br /&gt;
Or you can add the assembly to the Global Assembly Cache.&lt;br /&gt;
Adding an Assembly to the Bin Folder&lt;br /&gt;
The ASP.NET Framework automatically checks this folder for any assemblies. &lt;br /&gt;
If the folder contains an assembly, the assembly is referenced automatically by the ASP.NET.&lt;br /&gt;
When you add an assembly to an ASP.NET application&amp;quot;s Bin folder, the assembly is scoped to the application. &lt;br /&gt;
If you add an assembly to the Bin folder, then you can take advantage of XCopy deployment.&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Mixing Different Language Components in the App_Code Folder==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
You need to place components written in different languages in different subfolders. &lt;br /&gt;
If you create two subfolders in the App_Code folder named VBCode and CSCode&lt;br /&gt;
Then you can use the web configuration file to use components written in both VB.NET and C#.&lt;br /&gt;
File: Web.Config&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
  &amp;lt;system.web&amp;gt;&lt;br /&gt;
    &amp;lt;compilation&amp;gt;&lt;br /&gt;
    &amp;lt;codeSubDirectories&amp;gt;&lt;br /&gt;
      &amp;lt;add directoryName=&amp;quot;VBCode&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;add directoryName=&amp;quot;CSCode&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/codeSubDirectories&amp;gt;&lt;br /&gt;
    &amp;lt;/compilation&amp;gt;&lt;br /&gt;
  &amp;lt;/system.web&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
When the contents of the App_Code folder are compiled, two assemblies are created.&lt;br /&gt;
one that corresponds to the VBCode folder and one that corresponds to the CSCode folder.&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Using ASP.NET Intrinsics in a Component==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System.Web;&lt;br /&gt;
public class Preferences&lt;br /&gt;
{&lt;br /&gt;
    public static string FavoriteColor&lt;br /&gt;
    {&lt;br /&gt;
        get&lt;br /&gt;
        {&lt;br /&gt;
            HttpContext context = HttpContext.Current;&lt;br /&gt;
            context.Trace.Warn(&amp;quot;Getting FavoriteColor&amp;quot;);&lt;br /&gt;
            if (context.Session[&amp;quot;FavoriteColor&amp;quot;] == null)&lt;br /&gt;
                return &amp;quot;Blue&amp;quot;;&lt;br /&gt;
            else&lt;br /&gt;
                return (string)context.Session[&amp;quot;FavoriteColor&amp;quot;];&lt;br /&gt;
        }&lt;br /&gt;
        set&lt;br /&gt;
        {&lt;br /&gt;
            HttpContext context = HttpContext.Current;&lt;br /&gt;
            context.Trace.Warn(&amp;quot;Setting FavoriteColor&amp;quot;);&lt;br /&gt;
            context.Session[&amp;quot;FavoriteColor&amp;quot;] = value;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
            &lt;br /&gt;
File: Default.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; trace=&amp;quot;true&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.1//EN&amp;quot;&lt;br /&gt;
&amp;quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    void Page_PreRender()&lt;br /&gt;
    {&lt;br /&gt;
        body1.Style[&amp;quot;background-color&amp;quot;] = Preferences.FavoriteColor;&lt;br /&gt;
    }&lt;br /&gt;
    protected void btnSelect_Click(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        Preferences.FavoriteColor = ddlFavoriteColor.SelectedItem.Text;&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
        .content&lt;br /&gt;
        {&lt;br /&gt;
            width:80%;&lt;br /&gt;
            padding:20px;&lt;br /&gt;
            background-color:white;&lt;br /&gt;
        }&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Show Preferences&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body id=&amp;quot;body1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;content&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Show Preferences&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;asp:DropDownList&lt;br /&gt;
        id=&amp;quot;ddlFavoriteColor&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;asp:ListItem Text=&amp;quot;Blue&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:ListItem Text=&amp;quot;Red&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:ListItem Text=&amp;quot;Green&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/asp:DropDownList&amp;gt;&lt;br /&gt;
    &amp;lt;asp:Button&lt;br /&gt;
        id=&amp;quot;btnSelect&amp;quot;&lt;br /&gt;
        Text=&amp;quot;Select&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; OnClick=&amp;quot;btnSelect_Click&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>