Feed on
Subscription

The ASP WebApplication frequent learn the rudiments of a subject of.NET (1)

The frequent learn the rudiments of a subject of ASP Web Application of.NET (1)  
What is ASP.NET Application?


ASP.NET so definition Application:The summation that it is all files below a when move on Web application server fictitious catalog and its subdirectory, page, module and executable code.E.g. ,A "/order" that an Application that is called "order" may be Web server is fictitious catalog.Fictitious catalog can pass Internet
Services Manager is installed,It can include any subdirectory.


Each ASP.NET Application on Web server moves in a distinctive.NET run time to apply inside the country,It assured kind of segregation (won't produce translation to perhaps name conflict) , safe box (prevent pair of specific machines or the visit of network resource) and the segregation of static variable.



In a Web Application whole live in the process,ASP.NET is maintaining pool of example of a HttpApplication,One of allocating these example automatically every HTTP request that receives in order to handle Application.By distributive the request that special HttpApplication example is in charge of managing whole lifetime,When should requesting to end only,Its ability by reuse.This states among them user code does not need to use reentrance.



Found Application


Should found an ASP.NET Application,The fictitious list that we can use presence,Perhaps found a new fictitious directory.For instance,Installing the Windows that includes IIS
On 2000 servers,Can have C:\ of a catalog probablyInetPub\WWWRoot;We use Internet Services Manager to configure IIS,In "Start
-%26gt;Programs -%26gt;Below Administrative Tools " ,With the catalog that mouse right key clicks existence,Perhaps choose New to found a new fictitious directory,The average catalog that perhaps chooses Properties to promote an existence is fictitious catalog.


Look how to spark now ASP.NET Application.We can write document of a Simple.aspx,Place it fictitious catalog to fall,Visit it in the browser next.Go to the lavatory to contrast,The code that we listed three kinds of languages write use VB, C# and JScript:







C#


%26lt;%@Page Language= %26quot;C#%26quot; %%26gt;
%26lt;html%26gt;
%26lt;body%26gt;
%26lt;h1%26gt;hello World, %26lt;% Response.Write(DateTime.Now.ToString()); %%26gt;%26lt;/h1%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;

VB

%26lt;%@Page Language= %26quot;VB%26quot; %%26gt;
%26lt;html%26gt;
%26lt;body%26gt;
%26lt;h1%26gt;hello World, %26lt;% Response.Write(DateTime.Now.ToString()) %%26gt;%26lt;/h1%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;

JScript

%26lt;%@Page Language= %26quot;JScript%26quot; %%26gt;
%26lt;html%26gt;
%26lt;body%26gt;
%26lt;h1%26gt;hello World, %26lt;% Response.Write(DateTime.Now.ToString()); %%26gt;%26lt;/h1%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;



Code is very simple,The information that just prints a present time in the browser.We can add some of code to use Application target,Save the object for instance for Application limits type.Through founding file of a Global.asax,We still can define all sorts of incident to handle an order,For instance Application_OnStart incident trigger.
Related:

    Submit: