A: Your friend of. NET is easy to learn about asp.net.

Source: Internet
Author: User

1. What is. NET?
. Net full name. NET Framework is a development and running environment,
This strategy is a brand new idea of Microsoft,
It will make "the Internet industry enter a more advanced stage ",
. NET is not a programming language. In short, it is a set of class library frameworks,
. NET Development supports C #, VB. NET, J #, Jsript, and Managed C ++.
C # is a main development language supported by the. NET Framework,
It can be used to develop ASP. NET websites, Windows programs, console programs, and even mobile software,


2. What is the relationship between ASP. NET,. NET, and C?
. NET is divided into two aspects:
(1) WinForm
(2) WebForm
ASP. NET is a WebForm, that is, B/S mode development.
WinForm belongs to the C/S mode.
. NET is composed of many languages, such as C #, VB. NET, J #, Jsript, and Managed C ++.
But they all Run under. NET FrameWork Run Time.
Asp. NET can be developed using C # Or VB. NET.
After compilation, the CLR is formed and run through the IIS +. NET FrameWork on the server.
C # Is the development language.
ASP. NET is a dynamic web page Programming Technology in the. NET Framework environment,
. NET Framework is the basic Framework of. NET,
Visual Studio. NET is an integrated environment (IDE) for software development ).

3. What language is used for. NET development?
. NET claims to support more than 20 languages on the market, but currently
Only C #, VB. NET, J #, Jsript, and Managed C ++ officially released by Microsoft

4. Why mostly use C # To develop. NET?
C # is a programming language designed by Microsoft,
C # (read as 'csharp '). It is based on C/C ++ and is object-oriented.
No pointer. The garbage collection mechanism will automatically release the memory space.
Learning C # does not have to have the foundation of C language. However, if you have learned C language,
It will get twice the result with half the effort, because there are many similar syntaxes between them.
C # supports similar basic types to C ++, including int, long,
Float, double, char, string, arrays, structs, and classes.

5. Install the ASP. NET Environment
(1) In fact, General computers can be installed now. As for the operating system
. NET supports Windows, and Linux and Unix support is under development.
Microsoft Windows 2000 \ windows xp sp3 \ windows 2003 Operating System
(2) download the latest Framework because it is backward compatible.
. 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
MDAC is preferred for installation and SDK installation. It takes a long time to install the SDK.
(4) Trial Run
After the installation is complete, try to run a simple small program written in ASP. NET to determine whether the installation is successful.

6. What can the DLL in the Bin folder do?
(1) It is automatically generated and does not need to be added by yourself.
(2) function: the bin folder contains all referenced class libraries used in the project, and supports Server and other content.
The full name of DLL is Dynamic Link Library, which is called "Dynamic Link file" in Chinese ".

7. What are the main advantages of. NET?
The main advantages of. NET include cross-language, cross-platform, security, and support for open Internet standards and protocols.
. NET supports interoperability in multiple languages, that is, components developed in one language,
Another component can be reused through Object-oriented Inheritance.
. NET first compiles each language into an intermediate language (IL ),
Then, the real-Time (Just In Time) compiler is used to compile the platform code to implement object interoperability on a heterogeneous platform,
. NET implements resource object and type security through Common Language Runtime.
. NET provides support for HTTP, XML, and other Internet standards to obtain remote services in a heterogeneous network environment,
Connect to a remote device and interact with the Remote Application Programming Interface

8. What is the difference between ASP. NET and ASP?
The biggest difference between ASP. NET and ASP is the conversion of programming thinking and the enhancement of functions.
ASP uses a hybrid html programming language, such as VB/JS, which is a weak type and Structure-oriented scripting language,
Instead of object-oriented, this obviously produces the following problems:
1. The Code logic is chaotic and difficult to manage.
2. Poor code reusability: Due to the structure-oriented programming method, and mixed html,
Therefore, you may need to modify the page prototype. The entire program needs to be modified, and the code reusability is poor.
3. potential errors may occur due to weak types.
The above is the weakness of ASP language. ASP also has the following problems in terms of functions:
First, the function is too weak, and some underlying operations can only be completed through components.
Second, lack of complete Error Correction/debugging Functions
In theory, ASP. NET can use any programming language, including C #, VB. NET, JS, J #, and Managed C ++,
The most suitable programming language is the C # specially released by. NET Frmaework #
Advantages:
(1) It is an object-oriented programming language that is easy to learn.
(2) All features of object-oriented programming languages, such as encapsulation, inheritance, and polymorphism,
Encapsulation makes the code logic clear and can be applied to ASP. NET to separate the business logic from the Html page;
Inheritance and polymorphism greatly improve code reusability
(3) C # provides a complete debugging/error correction system.

9. What are the database types used for project creation?
Currently, popular databases include SQL server, MySql, Oracle, and DB2.
In most VS projects, the following four options are selected:
Sql2000 is simple and practical. It can be opened quickly through the command line if its functions are sufficient for learning;
Sql2005 provides comprehensive functions, but it is difficult to install and has a large size. It was slow to open the database and started much faster;
The new SQL database must be more powerful than the previous two databases. We recommend that you upgrade SQL to SQL;
Small ACCESS volume, convenient deployment (no need to start the service, etc.) easy to use.

10. Which controls are frequently used in ASP. NET?
The Label control is used to display text. The Label control cannot receive mouse or keyboard input.
TextBox Control to display and update task data.
When you Click or Click a Button, the Click event is triggered.
The ListBox and ComboBox controls have different appearances, but have similar functions. Users are allowed to select and cannot input text.

11. What are. net development tools?
Currently, Visual Studio 2005/2008 is the mainstream, but many small enterprises are still stubborn to use vs2003,
However, recently, vs2010 is also available.
VS provides the following versions: Standard Edition, Professional Edition, Tools for Office, and Team System edition.
C # builder can only be used for development in large enterprises,
Supports enterprise-level functions that are not supported by Microsoft vs.net.
There is also a free development tool web matrix, which has almost no automatic sensing capability,
It is suitable for developing pages that are not separated from codes and can improve the level of independent code writing.
However, it also has some features with a. net class library browser and a database development control.
Beginner VS. NET will be easy to use,
Of course, there is also a master who only uses notepad!

12. Why is the first time the. NET program runs slowly?When the aspx page is running, it must be compiled during the first access.
When you run it again, the speed will be normal due to the cache mechanism.

13. Naming rules for C #
There are mainly Pascal and Camel.
Pascal: upper-case letters of words, such as ProductType;
Camel: lowercase for the first word, and uppercase for other words, such as productType)
The following are some common C # members and their recommended naming methods:
Class: Pascal
Enumeration type enum: remember Pascal. It is named after Pascal. do not include Enum.
Delegate: Pascal is named after Pascal and does not distinguish it from the class name or function name by any special string.
Interface: Pascal Note: it always starts with the "I" prefix, followed by Pascal
Method function: Pascal
Namespace: Pascal, for example, usingExcelQuicker. Framework
Attribute: Pascal
Parameter: lowercase for Camel
Constant const: all Camel letters in uppercase
Local variable: the Camel declaration variable starts with str.
Data member: Camel starts with m + Pascal naming rules, such as mProductType (m means member)

14. How can I determine whether a program is open source or has source files?
All have corresponding. CS files or VB files
Project files and solution files
All dll files or referenced components in the binfile have the corresponding source code.

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.