|
Principles of ASP.NET Even though ASP.NET takes its name from Microsoft's old web development technology, ASP, the two differ significantly. Microsoft has completely rebuilt ASP.NET, based on the Common Language Runtime (CLR) shared by all Microsoft .NET applications. Programmers can write ASP.NET code using any of the different programming languages supported by the .NET Framework, usually C#, Visual Basic.NET, or JScript .NET, but also including open-source languages such as Perl and Python. ASP.NET has performance benefits over other script-based technologies because the server-side code is compiled to one or a few DLL files on a web server. ASP.NET attempts to simplify developers' transition from Windows application development to web development by offering the ability to build pages composed of controls similar to a Windows user interface. A web control, such as a button or label, functions in very much the same way as its Windows counterpart: code can assign it properties and respond to its events. Controls know how to render themselves: whereas Windows controls draw themselves to the screen, web controls produce segments of HTML and JavaScript which form part of the resulting page sent to the end-user's browser. ASP.NET encourages the programmer to develop applications using an event-driven GUI paradigm, rather than in conventional web-scripting environments like ASP and PHP. The framework attempts to combine existing technologies such as JavaScript with internal components like "Viewstate" to bring persistent (inter-request) state to the inherently stateless web environment. ASP.NET uses the .NET Framework as an infrastructure. The .NET Framework offers a managed runtime environment (like Java), providing a virtual machine with JIT and a class library. The numerous .NET controls, classes and tools can cut down on development time by providing a rich set of features for common programming tasks. Data access provides one example, and comes tightly coupled with ASP.NET. A developer can make a page to display a list of records in a database, for example, significantly more readily using ASP.NET than with traditional web technologies like ASP or PHP. ASPX file format ASPX is a text file format used as web-form pages in the .NET environment. In programming jargon, the ASPX file typically contains only static HTML or XHTML code where the developer places all the required form fields and text content for the web page. The dynamic code that involves request and response from the server is placed in an HTML page with a tag or block which is similar to other web development technologies such as PHP and JSP. ASP.NET does support inline code blocks inside an ASPX file, but this practice is generally discouraged.When projects are developed with Microsoft .NET technology, the form files or web pages with html code are renamed into .ASPX format with dynamic code inserted inside the tag. When a client requests information from the server (for instance, checking the ticket price from a travel agent), the ASPX page with text content and form fields gets information from the client and passes on the information to the server. With the help of the dynamic code inside the tag, the client gets the response or the information (ticket price) requested from the server. The ASPX and other resource files are placed in a virtual host on an Internet Information Services or other compatible ASP.NET servers. When a client requests information, the .NET framework parses and compiles the file into a .NET class and sends the response. Unlike some other web development technologies, which compile their files each time when responding the client, the ASPX files are compiled only for the first time when accessed and are then re-used to reduce the response time. Developers can also choose to pre-compile their code before deployment, eliminating the need for just-in-time compilation in a live environment. Other files Other file extensions associated with ASP.NET include: Advantages of ASP.NET over ASP Development tools Several available software packages exist for developing ASP.NET applications: History ASP.NET Team Members Various ASP.NET team members maintain blogs. Here are some of them: See also Resources about ASP.NET Microsoft Other implementations Tutorials Community sites | |||||||||
|
| ||||||||||
![]() |
|
| |