ASP.NET MVC究竟是什么? [英] What exactly is ASP.NET MVC?

查看:79
本文介绍了ASP.NET MVC究竟是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对ASP.NET MVC有一个基本的疑问。



以下是我对ASP.NET MVC的看法:



1. DOT NET:有许多通用库和功能可以组合用户代码。

2. MVC:编程的框架在.net中可用的三种模型 - 视图 - 控制器方法中完成
3. ASP:一种客户端和服务器端脚本语言,用于创建UI并具有其他服务器对象,例如section。

4. ASP.NET:构建多个ASP框架,比如工具包,更容易使用asp。



所以在ASP.NET MVC中:



a。 ASP仅使用会话,请求等服务器对象

b。不是在MVC 5中使用ASP.NET而是只有用于UI的剃须刀。

c。 DOT NET正在开发通用代码生成。



我是对的。如果没有提到点数[1。]或名称[a。]并请解释我为什么我错了。



我尝试了什么:



希望获得最佳答案,因为我没有在网上找到这些类型问题的明确答案。

解决方案

a)你是对的。 ASP或经典ASP是一个脚本语言。它通常使用VBScript来创建服务器页面。

b)ASP.NET是ASP的替代品,但它更强大。 ASP.NET提供了3个主要的Web开发框架,如WebForms,Web Pages和MVC。换句话说,MVC位于ASP.NET框架之上。 Razor是一个视图引擎(如WebForms和MVC 1中的ASPX视图引擎)它取代了ASP.NET MVC 1中使用的ASPX视图引擎,以帮助开发人员更轻松地构建UI(视图)。

c)DotNet是所有框架的核心。它提供了构建,部署和运行使用.NET技术的应用程序和服务的基础结构,例如桌面应用程序和Web服务。 .NET Framework包含三个主要部分:公共语言运行时,框架类库和ASP.NET。



我会建议你去开始使用ASP.NET部分,了解它提供的框架和技术: ASP.NET入门| ASP.NET站点 [ ^ ]

I have got a basic doubt about ASP.NET MVC.

Here is what I got in my mind about ASP.NET MVC:

1. DOT NET : Have many generic libraries and features can be combined user code.
2. MVC : Framework where programing done in model-view-controller method of three available in .net
3. ASP : A client and server side scripting language used to create UI and have other server objects like section.
4. ASP.NET: Built many frames of ASP like toolkit to use asp more easily.

So in ASP.NET MVC:

a. ASP Using Only server objects like session, Request etc
b. Not Using ASP.NET in MVC 5 instead there is only razor for UI.
c. DOT NET does the generic code generation in development.

Am I right about it. If not mention point number[1.] or name[a.] and please explain me why I am wrong.

What I have tried:

Hoping for best answers because I didn't find clear answers for these type of questions on web.

解决方案

a) You were right. ASP or classic ASP is a scripting langauge. It typically uses VBScript to create server pages.
b) ASP.NET is the replacement for ASP but it is more powerful. ASP.NET provides 3 main web development frameworks on top of it such as WebForms, Web Pages and MVC. In other words, MVC sits on top of ASP.NET framework. Razor is a view engine (like ASPX view engine in WebForms and MVC 1) it replaces the ASPX view engine used in ASP.NET MVC 1 to help developers build UI(Views) much easier.
c) DotNet is the heart of all frameworks. It provides the infrastructure for building, deploying, and running applications and services that use .NET technologies, such as desktop applications and Web services. The .NET Framework contains three major parts: the Common Language Runtime ,the Framework Class Library and ASP.NET.

I would reall suggest you to head over to getting started section of ASP.NET to learn about the framework and technologies it offers: Get Started with ASP.NET | The ASP.NET Site[^]


这篇关于ASP.NET MVC究竟是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆