ASP.NET面试60题---翻译第一天

1: Explain  how  a  web   application  work ?

A web application resides in the server and servers the client‘s requests over internet. The client  access the web page using  browser from his own machine. when a client makes a request , it receives the request  in the form of HTML which are interpreted  and display  by  the browser.

A web application on the server side runs under  IIS, ISS passes the request  from received from client to the application .The application returns the requested result int the form of html to ISS, which in turn sends to the result to the client.

        请解释一个网站是如何工作的?

网站运行在服务器上并且应答客户的请求(通过网络, 也就是我们常说的网络请求吧!!!什么是网络请求?)。   客户通过本机上的浏览器来获取网页。当一个客户发出一个请求, 他将获取含有结果的HTML(一种标签语言)表单, 表单被浏览器解析和呈现。(这里也说明了浏览器的作用,浏览器是一款软件, 她的作用是负责解析和呈现, 如何呈现则主要靠浏览器的内核, 为何Firefox看起来和用起来很爽,而360浏览器和扣扣浏览器甚至是淘宝浏览器都没有这种品质呢? 为何很多程序员愿意为Firefox开发插件呢?)

服务器端的应用程序运行在IIS中, IIS将客户的请求传递给应用程序, 应用程序将处理的结果返回给IIS, IIS再将结果发送给客户。(IIS 和 Apache,IIS是window中集成的一个组件,只要你激活她,就可以在上面发布网站了,配置都可以图形化处理。 而Apache是一软服务器软件, 配置则需要一定的水平,需要自己编辑一些文件)

 

2: Explain the advantages  of  ASP.NET.

Following are the  advantages of ASP.NET.

Web application exists in compliled form  on the server, so the excution speed  is  faster   as compared  to  the interpreted scripts. (编译语言比解释语言运行得快)

ASP.NET makes development simpler and resier to maintain  with an enevt-driven server-side proaramming model.

(事件驱动和模式使得维护变得简单)。

Being part of .framework, it has access to all the features of .framewok.   (作为.framework的一部分,她有机会获取.framework 的所有特性优点)

Content and programe logic separated which reduces the inconveniences  of  program maintenance。

(内容和编程逻辑分开以减少程序维护中的冲突)

ASP.NET makes for easy deployment . there is no need to register components because the configuration information is built-in. (ASP.NET容易扩展,不需要注册组件,因为她在配置文件中被集成了)

To delelop program  logic, a developer can choose to write their code in more than 25  .NET language including C#,

JScript.Net ,VB.NET etc (选择太多了,不一定是好事,我们都会有选择恐惧症的)

Introduction of view state helps in maintaining state of the controlls automatically between the postbacks events。

(viewstate的引入可以自动维护控件的状态和事件回传) (viewstate使得页面臃肿)

ASP.NET offers build-in security features through window authentication or other  authentication methods.

(各种身份认证模式)

Integrated with ADO.NET (集成ADO.NET)

Built-in caching features. (缓存??? 具体不太清楚是什么)

 

3: Explain the different parts that constitute ASP.NET  application

请描述ASP.NET的各个组成部分

Content, program logic and configuration file constitute an ASP.NET application.

内容,编程逻辑和配置文件组成了一个ASP.NET 应用程序。

Content  files  include static text,images and can include elements from database。

Program  logic files exist as dll file on the  server  that  responds to the user actions。

Configuration offers various settings that determine how the application runs on the server。

 

4: Describe the sequ of action takes place on the server when ASP.NET applications starts first time?

IIS starts ASP.NET  worker process>> worker  process  loads assembly in the memory >> IIS sends the request

 to the assembly>> the assembly composes a response using program logic >> IIS return the response to the user  in the  form  of  HTML。

5: Explainthecomponent of web form in ASP.NET

server controls   HTML controls  , Data controls , system components.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。