什么是 ASP.NET?
多年来我一直严格使用 C++ 环境(以及专门的统计语言)。 Visual Studio 直到 2001 年,Borland 自此开始。 大多数是专门为客户提供的桌面应用程序。
我并不是故意对此一无所知,但多年来,当我涉足其他领域时,我花了很多时间研究 JavaScript、PHP 和大量 Python。
“ASP.NET”是语言吗? C# 是语言,“ASP.NET”是框架吗? “什么是 ASP.NET”的最佳答案是什么? ASP.NET 和我熟悉的 C++ 中的任何内容之间是否存在对应关系?
我知道我可以用谷歌搜索相同的标题,但我宁愿看到这群人的答案。 (此外,我认为将来 Google 应该指出此类问题。)
I've been strictly in a C++ environment for years (and specialized statistical languages). Visual Studio until 2001, and Borland since. Mostly specialized desktop applications for clients.
I'm not remaining willfully ignorant of it, but over the years when I've dipped into other things, I've spent my time playing around with JavaScript, PHP, and a lot of Python.
Is "ASP.NET" the language? Is C# the language and "ASP.NET" the framework? What's a good answer to "What is ASP.NET"? Is there a correspondence between ASP.NET and anything I'd be familiar with in C++?
I know I can google the same title, but I'd rather see answers from this crowd. (Besides, in the future, I think that Google should point here for questions like that.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
假设这是 MS 构建 Web 应用程序的技术。 ASP 代表 Active Server Pages,.NET 是其背后的框架。
C#和VB.NET是可以使用的语言,但我想其他.NET语言也可以使用。
Let's say it's a technique from MS to build web applications. ASP stands for Active Server Pages, .NET is the framework behind it.
C# and VB.NET are the languages which can be used, but I guess other .NET languages also can be used.
对于那些不知道或不了解该平台的人来说,可以看看MS的信息。
http://www.asp.net/get-started
Take a look at MS' info for those who don't know or understand the platform.
http://www.asp.net/get-started
ASP.NET 是一个框架,它提供:
不确定 ASP.NET 是否与您可能熟悉的任何 C++ 框架进行比较。 由于 HTTP 的无状态性以及所涉及的技术含量相对较低(HTML、脚本等),Web 框架通常往往是独一无二的。
ASP.NET is a framework, it delivers:
Not sure if ASP.NET compares to any C++ frameworks you may be familiar with. Web frameworks usually tend to be unique due to the statelessness of HTTP and the relatively low-tech technologies involved (HTML, scripting, etc).
ASP.NET 是框架,就像 .NET
代码本身一样,将是 HTML、JavaScript(用于客户端)和任何 .NET 兼容语言的混合。 所以 C#、VB.NET、C++.NET,哎呀...甚至 IronPython
ASP.NET is the framework, just like .NET
The code itself, will be a mix of HTML, JavaScript(for Client-Side) and any .NET compatible language. So C#, VB.NET, C++.NET, heck...even IronPython
ASP.NET (维基百科)
这是在 Google 上搜索的第二个结果,所以我猜测(半期待)你也不明白这意味着什么。
网页开发从简单的静态 HTML 页面开始。 这意味着客户端通过 URL 请求页面,服务器将页面完全按照设计发送回给他/她。 此后不久,出现了几种技术,以提供更加“动态”或个性化的体验。
开发了几种“服务器端语言”(PHP、Perl、ASP...),它们允许服务器在将网页发送回客户端之前对其进行处理。 这样,当客户端请求网页时,服务器可以解释该请求,处理它(例如连接到数据库并获取一些结果)并将其发送回修改内容并使它们“动态”。 该过程发生在服务器上这一事实代表了“服务器端”的名称。
因此,最初的 ASP(ASP.NET 的前身)是一种服务器端语言,专注于提供网页服务。 通过这种方式,它支持多种快捷方式,例如可以将 HTML 和 ASP 源代码插入到文件中,这在当时由于 PHP 的实现而非常流行。 它(与大多数此类语言一样)也是一种动态语言,并且是解释性的。
ASP.NET 是原始 ASP 的演变,并进行了一些改进。 首先,它确实(尝试)将演示文稿 (HTML) 与可以使用 Visual Basic 或 C# 语法实现的代码 (.cs) 分开。 它还将某种编译合并到最终的 ASP 页面中,将它们封装到程序集中,从而提高性能。 最后,它可以访问完整的 .NET 框架,该框架支持大量的帮助程序类。
因此,总而言之,它是一种位于服务器上、旨在制作网页的编程语言。
ASP.NET (Wikipedia)
That's on the second result searching on Google so I'm guessing (half-expecting) that you don't understand what that means either.
Webpage development started with simple static HTML pages. That meant the client asked for a page by means of an URL and the server sent the page back to him/her exactly as it has been designed. Sometime after that several technologies emerged in order to provide a more "dynamic" or personalized experience.
Several "server side languages" were developed (PHP, Perl, ASP...) which allowed the server to process the Web page before sending it back to the client. This way when a client requested a webpage the server could interpret the request, process it (for example connecting to a database and fetching some results) and send it back modifying the contents and making them "dynamic". The fact that the process took place on the server stands for the name of "server side".
So the original ASP (predecessor of the ASP.NET) was a server side language that was focused on serving web pages. In such way it supported several shortcuts such as the possibility to intercalate HTML and ASP source into the file which was on that time much popular due to PHP implementation. It was also (as most of these languages) a dynamic language and it was interpreted.
ASP.NET is an evolution of that original ASP with some improvements. First it does truly (try to) separate the presentation (HTML) from the code (.cs) which may be implemented by using Visual Basic or C# syntax. It also incorporate some sort of compilation to the final ASP pages, encapsulating them into assemblies and thus improving performance. Finally it has access to the full .NET framework which supports a wide number of helper classes.
So, summing up, it is a programming language located on the server and designed to make webpages.
我本来打算写一个冗长的答案,但我觉得维基百科已经涵盖了它:
所以ASP.NET是微软的Web开发框架,最新版本是4.0。
我该如何开始? 查看以下资源:
I was going to write a lengthy answer but I felt that Wikipedia had it covered:
So ASP.NET is Microsoft's web development framework and the latest version is 4.0.
How do I get started? Check out the following resources: