Some common questions and answers in the. NET interview

Source: Internet
Author: User

1. How to pass page values and their advantages and disadvantages?
Session, Application, Cookies, Requst. QueryString, Requst. Form, Server. Transfer (receives the entire page through Context. Handler)

2. ASP. NET authentication method and working principle
Windows Authentication provider
Provides information on how to use Windows Authentication with Microsoft Internet Information Service (IIS) authentication to ensure the security of ASP. NET applications.
Forms authentication provider
Provides information about how to use your own code to create an application-specific logon form and perform authentication. One easy way to use Forms authentication is to use ASP. NET membership and ASP. NET login controls, which provide a way to collect, verify, and manage user creden。 with little or no code.
Passport Authentication provider
Provides information about the centralized authentication service provided by Microsoft, which provides single logon and core configuration file services for member sites.
 

3. What is webservice? What do you know about it?
Webservice is a technology developed by Microsoft for service-oriented SOA programming. It uses the wsdl Description Language to declare an interface for referenced services, the Simple Object Access Protocol of SOAP is used for inter-Entity Data Transmission, such as method parameters and return values. All objects transmitted in SOAP are serialized XML data, which can penetrate the firewall for object transmission between different applications.


4. What are the similarities and differences between UDP and TCP connections?
The UDP protocol does not necessarily provide reliable data transmission, that is, the Protocol cannot ensure that the data is accurate to the destination. However, if your program's goal is to transmit as much information as possible as soon as possible, you can use UDP for implementation, such as QQ, YY voice and other chat programs.
TCP/IP provides reliable data transmission and maintains a virtual connection between devices or services that communicate with each other. Recover data when data packets are unordered, lost, or damaged during delivery.


5. Comparison between. NET remoting and webservice?
Remoting can flexibly define the Protocol it is based on. If it is defined as HTTP, it is no different from Web Service. Generally, it is defined as TCP, which is a little more efficient than Web Service.
Remoting is not a standard, while Web Service is a standard;
Remoting generally needs to be started through a WinForm or Windows Service, while Web Service requires IIS to start.
In VS, Web Service calls are encapsulated to be easier to use than Remoting.
Remoting is generally used in C/S systems, while Web Service is used in B/S systems.
 

6. I Don't Know How To Apply JS and JQUEY Ajax?
Js is a scripting language
Jquey is a function library of js scripting language. This library enriches JS applications.
Ajax is an asynchronous data access technology implemented using js or jquey combined with the server development language. This page does not refresh the data on the server .)

7. Briefly describe the WCF and WPF technologies.
There is no direct relationship between WCF and WPF.
WCF is a distributed application system that integrates Remoting, webservice, TCP/IP, and other technologies with ease. The main purpose is to transmit and use objects in different applications.

WPF is a new generation of Microsoft Graphics System. It runs in. NET Framework 3.0 and later frameworks and provides a unified description and Operation Method for user interfaces, 2D/3D images, documents, and media. WPF uses XAML as the front-end performance, and uses C # To implement background programming.


8. What is the difference between a DIV tag and a <span> tag?
Division is a block-level element that can contain paragraphs, titles, tables, and even chapters, summaries, and remarks.
While SPAN is an element in the row, it does not wrap the line before and after the SPAN. It has no structural meaning and is purely an application style. When other elements in the row are not appropriate, you can use SPAN.


9. How do I configure common Webconfing nodes?
<Etettings> is generally used to set constant information to be applied in a program.
<ConnectionStrings> is generally used to set the link string in the program.
<SessionState> used to set the session or cookie status
<HttpHandlers> call the corresponding request ing to the corresponding handler Based on the file name or extension.
<HttpModules> all requests are mapped to the corresponding handler.


10. What is the difference between Asp.net and ASP?
Asp is the predecessor of asp.net. They are all server-side dynamic programming technologies. asp is interpreted and executed on the server. asp generally uses vb scripts as programming languages. ASP. NET is a compilation and execution technology. c # is generally used for asp.net programming, and some people are using vb.net.

11. What is Serverlight technology?
Serverlight is a subset of wpf. It is mainly developed for web and mobile applications, with the same purpose as wpf, provides a unified description and Operation Method for user interfaces, 2D/3D images, documents, and media. The same uses xaml as the expression C # as the programming language.

12. XML technology and its application?
XML applications in ASP. NET are generally used to maintain data formats, such as DATATABLE and DATASET objects in ADO. NET. Sometimes it is also used to store data, or it can be used to turn the object sequence into an XML document, and then reverse-order it when used. In. net webservice, XML is also used to save the general format. For example, both wsdl and soap are based on xml. At the same time, The xaml front-end presentation language in wpf and Serverlight is also based on xml. Of course, xml can be combined with xsl to implement the front-end interface, but it cannot.

13. What new technologies and applications does Microsoft provide?
The new template engine Razor technology in MVC3.0 and MVC changes the original aspx file to a cshtml file. In addition, the internal syntax is more concise. You do not need to declare the C # statement with the @ statement.

WCF, WPF, XAN, Serverlight, Linq, EntityFremwork, and cloud computing. "Private cloud ".

14. How to release and deploy the project?
B/S project, which can be directly released to the right. After the release, all the. cs files in the project are packaged into. dll. Then, deploy the project to the IIS server through IIS Site Management. Pay attention to the preparation of authentication in web. config.

This article is from the "Zhangjian technical column" blog, please be sure to keep this source http://jianle.blog.51cto.com/429692/625823

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.