ASP AND ASPX Difference


ASP
ASPX
The .asp is the file extension of the classic ASP page.
The .aspx is the file extension of ASP.NET page.
ASP stands for Active Server Pages.
ASPX is the acronym of Active Server Pages Extended.
The .asp file runs under the process space of inetinfo.exe, which is an IIS process space.
The .aspx file runs in a separate worker process called as aspnet_wp.exe.
The .asp file can execute only in platforms of Microsoft technology. It cannot run in non-Microsoft platforms like Apache Web Server.
The .aspx file can run on any platforms, be it Microsoft or not. Hence .aspx file can be executed in Apache Web Server as well.
The .asp file can be coded in only two languages namely VBScript and Javascript. Both these languages are client side languages.
The .aspx file can be coded using any .NET language including VB.NET, C#. Both VB.NET and C# are Server Side Languages.
In .asp file, the executable code can be included outside a function scope where in the function is located inside the script block marked as runat=server. 
In .aspx file, the executable code cannot be included outside a function scope where in the function is located inside the script block marked as runat=server.
In .asp file, a function can be defined inside server side script tags.
In .aspx file, a function cannot be defined inside server side script tags.
In .asp file, all the directives will be placed in the page’s first line using <%@Page Language= “Jscript” %> tag.
In .aspx, the language directive must be enclosed within page directive as <%@Page Language= “VB” %>

No comments:

Post a Comment