Difference between asp and asp.net [closed]

2019-02-02 07:18发布

What is the difference between asp and asp.net?

6条回答
看我几分像从前
2楼-- · 2019-02-02 07:26

"Classic" ASP uses vbscript for its code. ASP.NET allows you to use C#, VB.NET and other languages. ASP.NET gives you access to all the tools which come with the .NET framework and allows you to write object-oriented code.

查看更多
甜甜的少女心
3楼-- · 2019-02-02 07:33

ASP is older (also called "classic ASP"). ASP.NET is newer, using the .NET framework.

See: http://www.w3schools.com/aspnet/aspnet_vsasp.asp

查看更多
Luminary・发光体
4楼-- · 2019-02-02 07:36

ASP.NET is not the same as ASP. The "old" ASP is now called classic ASP. ASP.NET is a Markup Language can, among other things, use the server controls to run elements.

As for example:

<form id="MyForm" runat="server">

Then you said that it will run on the server and you have an id to control it.

  • NET is the framework (such as a library)
  • C #, J #, VB.NET, they are the main script languages for communicating with. NET
  • ASP.NET is Markup Language .
    it runs on the server side. It generates xml / html / xHTML even further, to the user. In many ways one can compare ASP.NET, with WinForms. Then there is a way to visually show something to the user.
查看更多
我欲成王,谁敢阻挡
5楼-- · 2019-02-02 07:41

According to IndiaBIX's answers to ASP.NET interview questions:

The basic difference between ASP and ASP.NET is that ASP.NET is compiled whereas ASP is interpreted whereas. This implies that since ASP mainly uses VBScript, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses.NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).

Also see the section of the Wikipedia article that compares ASP.NET to ASP classic for a detailed comparison.

查看更多
Bombasti
6楼-- · 2019-02-02 07:43

They are too numerous to list here. I suggest you read ASP.NET compared with classic ASP Wikipedia.

--

Aside: My original answer referred to a resource on w3schools.com that is today no longer available. If you would like to access it, you may do so by utilizing the Wayback archive: ASP.NET vs ASP.

查看更多
孤傲高冷的网名
7楼-- · 2019-02-02 07:47

Classical ASP had no mechanism of running itself on non- Microsoft technology platforms like the 'The Apache Web Server'

But, ASP.NET

ASP.NET could be run on non-Microsoft Platforms also. Cassini is a sample Web server produced by Microsoft which, among other projects, has been used to host ASP.NET with Apache.

Multi Language Support in WebPage

In ASP only two languages were available for scripting VBScript and Jscript/Javascript. But in ASP.NET We are no longer constrained to the two scripting languages available in traditional ASP: Any fully compliant .NET language can now be used with ASP.NET, including C# and VB.NET.

Note :- (C# and VB.Net are both server Side languages.)

查看更多
登录 后发表回答