Introduction to ASP.NET
Unlike the ASP runtime, ASP.NET uses the Usual Utterance Runtime (CLR) if by the .NET Framework. The CLR is the .NET runtime, which manages the execution of code. The CLR allows the objects, which are created in clashing languages, to interact with everyone other and hence removes the tongue barrier. CLR thus makes Lacework manipulate advancing augmented efficient.
In appendix to simplifying the designing of Mesh applications, the .NET CLR offers frequent advantages. Some of these advantages are listed as follows.
Improved performance:
The ASP.NET law is a compiled CLR principle instead of an interpreted code. The CLR provides just-in-time compilation, native optimization, and caching. Here, it is influential to memo that compilation is a two-stage manner in the .NET Framework. First, the statute is compiled into
the Microsoft Intermediate Talking (MSIL).
Then, at the execution time, the MSIL is compiled into native code. Onliest the portions of the decree that are de facto needed testament be compiled into native code. This is called Aloof In Era compilation. These features govern to an overall improved performance of ASP.NET applications.
Flexibility:
The full .NET group lib can be accessed by ASP.NET applications. You can manipulate the speech that first applies to the type of functionality you craving to implement, for ASP.NET is vocabulary independent.
Configuration settings:
The application-level configuration settings are stored in an Extensible Markup Conversation (XML) format. The XML format is a hierarchical subject format, which is unceremoniously to study and write. This format makes it apparent to practice latest settings to applications without the facilitate of any regional government tools.
Security:
ASP.NET applications are secure and bag a allot of default authorization and authentication schemes. However, you can convert these schemes according to the security needs of an application.
In addition to this file of advantages, the ASP.NET framework makes it effortless to migrate from ASP applications.
Creating an ASP.NET Application
Use a contents editor:
In this method, you can comp the enactment in a paragraph editor, such as Notepad, and save the code as an ASPX file. You can save the ASPX list in the directory C:inetpubwwwroot. Then, to demonstrate the output of the Lattice leaf in Internet Explorer, you simply charge to type http://localhost/
Use the VS.NET IDE:
In this method, you appropriateness the IDE of Visual Studio .NET to effect a Netting sheet in a WYSIWYG manner. Also, when you build a Net application, the operate is automatically created on a Interlacing server (IIS server). You bring about not compulsion to practise a seperate virtual directory on the IIS server.
From the previous discussion, it is accessible that the elaborating of ASP.NET Web applications is yet exceeding convenient and efficient in Visual Studio .NET.
ASP.NET Web pages consist of HTML topic and the code. The HTML issue and the regulation can be separated in two at odds files. You can address the edict in Visual Basic or C# . This separate information is called the rule last file. In this section, you'll discover clean Web pages by using VB as fit as C#.
Before you flying start creating a Web page, you should be known with basic ASP.NET syntax. At the top of the page, you must specify an @ Stage notice to define chapter particular attributes, such as language.
To specify the speaking as VB for any code output to be rendered on the page.
This border indicates that any code in the block, <% %>, on the event is compiled by using VB.
To render the output on your page, you can practice the Response.Write() method.
Creating a Visual Basic Web Application
You can dream up an ASP.NET exercise using Visual Basic by creating a Visual Basic
Web Utilize project. To end so, full the succeeding steps:
1. Receive String Dissimilar Project. The Latest Project dialogue box appears.
2. Accept Visual Basic Projects from the Project Types pane.
3. Hire ASP.NET Web Use from the Templates pane. The Title box contains a default honour of the application. The End box contains the designation of a Web server where the apply will be created. However, you can moderate the default designation and location. In this case, the compellation of the illustration handle is SampleVB.
Deploying an ASP.NET Web Application
After creating and testing your ASP.NET Web applications, the coming course is deployment.
Deployment is the development of distributing the finished applications (without the source code) to be installed on other computers.
In Visual Studio .NET, the deployment mechanism is the alike irrespective of the programming words and tools used to coin applications. In this section, you'll deploy the "Hello World" Web employ that you created. You can deploy any of the practice that was created by using VB or C#. Here, you'll deploy the application created by using VB. To engage in so, ensue these steps:
1. Unlatched the Web application project that you hope for to deploy. In this case, govern the SampleVB project.
2. Obtain Document Add Project Au courant Project to unbarred the Add Cutting edge Project dialog box.
3. From the Project Types pane, catch Setup and Deployment Projects.
From the Templates pane, grip Web Setup Project.
4. Quarters the default cognomen of the project. In this case, convert it to "SampleVBDeploy."
5. Click OK to full the process. The project is added in the Impression Explorer window.
Published: July 15, 2008