1,. What is NET?
. NET full name. NET Framework is a development and operational environment,
The strategy is a new idea from Microsoft,
It will allow the "Internet industry to enter a more advanced stage",
. NET is not a programming language. Simply put is a set of class library framework,
. NET Development supports C #, vb.net, J #, Jsript, and managed C + +.
C # is a main development language supported by the. NET Framework Framework,
Can be used to develop ASP, Windows programs, console programs, and even mobile phone software,
2, ASP. What is the relationship between NET and C #?
. NET is divided into two areas:
(1) WinForm
(2) WebForm
Asp. NET is belong to the WebForm, that is usually said B/S model development.
And WinForm is the C/s mode.
. NET is composed of many languages, such as C #, VB.net, J #, Jsript, Managed C + +
But they are all running under the. NET FrameWork run time.
ASP. NET can be developed in C # or vb.net.
The CLR is compiled and then run again through the iis+.net framework of the server.
C # is the development language.
In summary, ASP. NET is a dynamic Web programming technique in the. NET Framework environment,
The. NET Framework is the underlying framework for. NET,
Visual Studio.NET is an integrated environment (IDE) for developing software.
3,. NET development is in what language?
. NET claims to support over 20 languages in the market, but currently
Only Microsoft official release of c#,vb.net,j#, Jsript and managed C + +
4. Why do most of the. NET develop in C # language?
C # is a programming language designed by Microsoft Corporation,
C # (read ' Csharp '). It is object-oriented based on C/s + +.
Without pointers, there is a garbage collection mechanism that automatically frees up memory space.
Learning C # does not have to have a C-language foundation, but if you learn C language,
That will do more with less, because there are a lot of grammar between them.
C # supports basic types similar to C + +, including int, long,
float, double, char, string, arrays, structs and classes.
5, ASP. NET Environment Installation
(1), in fact, now the general computer can be installed, as for the operating system currently
. NET supported platforms have Windows, as for Linux and UNIX support is under development.
Operating systems for Microsoft Windows 2000\windows XP Sp3\windows 2003
(2), running environment download, because is backward compatible, so you can download the latest framework Framework
. NET Framwork 2.0 Official:
. NET Framework 3.5:
http://www.microsoft.com/downloads/details.aspx?familyid=333325FD-AE52-4E35-B531-508D977D32A6&displaylang= Zh-cn
. NET Framework 4.0:
Http://download.microsoft.com/download/D/2/C/D2C07945-4D8B-44B6-A5E6-EE5A4CB8357D/dotnetfx40_full_setup.exe
(3), installation process
Installation of MDAC is preferred, and the installation time for the installation of SDK,SDK is long.
(4), test run
After the installation is complete, try running a simple ASP. NET-Written applet to determine if the installation was successful.
6. What can the DLL under the Bin folder do?
(1) It is automatically generated without adding it yourself.
(2) Role: The Bin folder contains all referenced libraries used in the project, supporting servers and other content
DLL is the full name of the dynamic link Library, the Chinese is called "dynamically linked files."
7,. What are the main advantages of net?
. NET's main benefits are cross-language, cross-platform, security, and support for open Internet standards and protocols.
. NET supports interoperability of multiple languages, that is, components developed in one language,
Can be reused under another component through object-oriented inheritance.
. NET by compiling each language into an intermediate language (IL) First,
And then execute it with the instant (Just in time) compiler to compile the cost of the platform code to achieve the interoperability of objects under heterogeneous platform,
. NET implements resource objects, type security through the common language runtime CLR (Common Language Runtime).
. NET provides access to remote services in heterogeneous network environments through support for Internet standards such as Http,xml.
Programming interface for connecting remote devices, interactive remote applications
8, ASP. The difference between net and ASP?
Asp. The biggest difference between net and ASP is the transformation of programming thinking and the enhancement of function.
ASP uses a weakly-typed, structure-oriented scripting language such as VB/JS to program the HTML,
Rather than object-oriented, this has the following problems:
1, code logic confusion, difficult to manage.
2, the reusability of the code is poor: because it is a structure-oriented programming, and mixed HTML,
So maybe the page prototype changes a little, the whole program needs to be modified, code reuse is poor.
3, the weak type causes the potential error possibility.
The above is the ASP language itself weaknesses, in the functional aspect of ASP also has problems:
The first is that the function is too weak, and some underlying operations can only be done by components
Second, lack of perfect error correction/debugging function
Asp. NET can theoretically be used in any programming language including C#,vb.net, JS, J #, Managed C + +, etc.
The most appropriate programming language is the C # that Ms. NET Frmaework specifically launches
The advantages are as follows:
(1) is an object-oriented programming language, easy to learn.
(2) All the characteristics of object-oriented programming language, such as encapsulation, inheritance, polymorphism, etc.
Encapsulation makes the code logically clear, and it can be applied to ASP to separate the business logic from the HTML page;
Inheritance and polymorphism make code reusability much better
(3) C # also provides a complete debug/error correction system.
9, do the project database type selection?
The current popular databases are: SQL server,mysql,oracle,db2.
The VS project Mostly chooses the following four types:
Sql2000 simple and practical, fully functional enough to learn when the use of the command line can be opened quickly;
Sql2005 function comprehensive, but installation trouble, large size, just open the database when relatively slow, after the start of a lot faster;
Sql2008 new database, the function is certainly stronger than the previous two, it is recommended to use SQL2005 users to upgrade to Sql2008;
Access is small, easy to deploy (without starting services, etc.) and easy to use.
10, ASP. What are the frequently used controls in net?
The control that the label control uses to display text. The label control cannot receive mouse or keyboard input.
The TextBox control displays and updates the task data, and the user enters the content.
Button control when a user clicks or taps a button, the Click event is triggered
The ListBox and ComboBox controls look different, but are very similar in functionality, allowing the user to select and not allow text to be entered.
11. What are the. NET development tools?
Now the mainstream is visual Studio 2005/2008, but many small businesses still stubbornly use vs2003,
But recently VS2010 has also been listed.
VS offers the following versions: Standard Edition, Professional Edition, Tools for Office, and Team System Edition.
and C # Builder applies only to large enterprise development,
Supports enterprise-class features that are not supported by some Microsoft Vs.net.
There is also a free development tool Web matrix, which is weak to almost no
The kind of page that is suitable for developing pages and not separating the code can improve the level of independent writing code.
But he has a. NET class library browser, and a database-developed control, which is a bit of a feature.
Beginners Vs.net will be easy to get started,
Of course, there is a master only with Notepad!
12, why. NET program runs slower for the first time? The ASPX page is compiled the first time it is accessed at run time.
When you run again, the speed will be fine due to the caching mechanism.
13. Naming conventions for C #
There are two main types of Pascal and camel
Pascal: Capitalize the first letter of a word, such as producttype;
Camel: First letter in lowercase, first letter of the remaining words, such as ProductType)
Here are some common C # members and their recommended naming methods:
Class Class:pascal
Enumeration type Enum:pascal Remember that it is named Pascal and do not include enum
The delegate delegate:pascal is named Pascal, not distinguished by any special string from the class name, function name
Interface Interface:pascal Note: Always start with the "I" prefix, followed by Pascal named
Method function:pascal
Namespaces namespace:pascal such as: usingexcelquicker.framework
Property: Pascal
Parameters: Camel Initials lowercase
Constant Const:camel Letter All uppercase
Local variable: Camel declaration variable is preceded by str
Data member: Camel begins with M +pascal naming rules, such as Mproducttype (M means member)
14, how to determine whether a program is open source or active files?
all have corresponding. CS Text or VB file
There are project files and solution files
All DLL files under Bin file or referenced components have corresponding source code