Answer the question you asked. NET small common sense easy to learn asp.net friend _ basic Application

Source: Internet
Author: User
Tags garbage collection html page inheritance lowercase
1,. NET is what?
. NET full name. NET Framework is a development and running environment,
The strategy is a new idea for Microsoft,
It will allow the "Internet industry to enter a more advanced stage",
. NET is not a programming language. Simply put, a set of class library frameworks,
. NET Development supports C #, vb.net, J #, Jsript, and managed C + +.
C # is a major development language supported by the. NET Framework Framework,
Can be used to develop asp.net web sites, Windows programs, console programs, and even mobile software,


2, ASP.net,. What is the relationship between NET and C #?
. NET is divided into two areas:
(1) WinForm
(2) WebForm
Asp. NET is belong to WebForm, is usually said B/s mode of development.
And WinForm is belong to C/s mode.
. NET is composed of many languages, such as C #, VB.net, J #, Jsript, Managed C + +
But they all run under the. NET FrameWork run time.
ASP.net can be developed using C # or vb.net.
The CLR is compiled and then compiled to run again through the server's iis+.net framework.
C # is the development language.
In short, ASP. NET is a dynamic Web programming technology in the. NET Framework environment,
The. NET Framework is the basic framework of. NET,
Visual Studio.NET is an integrated environment (IDE) for developing software.

3,. NET development is what language?
. NET claims to support more than 20 languages on the market, but currently
Only Microsoft officially released c#,vb.net,j#, Jsript and managed C + +

4, why most of the use of C # language development. NET?
C # is a programming language designed by Microsoft Company,
C # (read ' Csharp '). It is based on C + + and is Object oriented.
Without pointers, there is a garbage collection mechanism that automatically frees up memory space.
Learning C # does not have to be based on the C language, but if you've learned C,
That would be a lot of effort, because there are so many syntaxes between them.
The basic types supported by C # are very 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 are Windows, and Linux and UNIX support is under development.
Operating system for Microsoft Windows 2000\windows XP Sp3\windows 2003
(2), operating environment download, because it is backward-compatible, so you can download the latest framework Framework
. NET Framwork 2.0 official Download Address:
. NET Framework 3.5 Download Address:
http://www.microsoft.com/downloads/details.aspx?familyid=333325FD-AE52-4E35-B531-508D977D32A6&displaylang= Zh-cn
. NET Framework 4.0 Download Address:
Http://download.microsoft.com/download/D/2/C/D2C07945-4D8B-44B6-A5E6-EE5A4CB8357D/dotnetfx40_full_setup.exe

(3), installation process
The preferred installation of MDAC, and then install SDK,SDK installation time is longer to wait patiently.
(4), trial run
After the installation is complete, try running a simple asp.net program to determine if the installation was successful.

6, what can the DLL under the Bin folder do?
(1) It is automatically generated, do not add yourself.
(2) Function: The bin folder contains all the referenced class libraries used in the project, supporting the contents of the server, etc.
The full name of the DLL is the dynamic link Library, which is called a "dynamically linked file."

7,. NET what are the main advantages?
. NET's main benefits are cross-language, cross-platform, security, and support for open Internet standards and protocols.
. NET supports the interoperability of multiple languages, the components developed in one language,
Can be reused under another component through object-oriented inheritance.
. NET by compiling the languages into intermediate languages (IL) First,
And then execute it with the Just-in-time (Just in time) compiler to compile the cost of the platform code to achieve heterogeneous Platform object interoperability,
. 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,
A programming interface that connects remote devices and interacts with remote applications

8, ASP. NET and ASP the difference?
Asp. NET and ASP are the biggest difference between the conversion of programming thinking and the enhancement of functions.
ASP uses a weakly typed, structure-oriented scripting language such as VB/JS to program HTML.
Rather than object-oriented, this obviously produces the following questions:
1, the code logic confusion, difficult to manage.
2, the reusability of the code is poor: Due to the structure-oriented programming method, and mixed HTML,
So it is possible to modify the page prototype, the entire program needs to be modified, code reuse is poor.
3, the weak type causes potential error possibility.
The above is the ASP language itself weaknesses, in the functional aspects of ASP also have problems:
The first is that the function is too weak, some low-level operations can only be done through the component
Second lack of complete error correction/debugging function
Asp. NET can theoretically use any programming language including C#,vb.net, JS, J #, Managed C + +, etc.
The most appropriate programming language is the C # specifically launched by Ms for. NET Frmaework.
The advantages are as follows:
(1) is an object-oriented programming language, simple and easy to learn.
(2) All the features of Object-oriented programming languages, such as encapsulation, inheritance, polymorphism, etc.
Encapsulation makes the logic of the code clear, and it can be applied to the asp.net to separate the business logic from the HTML page;
Inheritance and polymorphism make code reusability much better
(3) C # also provides a complete debugging/error correction system.

9, do the project when the type of database selection?
The current popular databases are: SQL server,mysql,oracle,db2.
The VS project Mostly chooses the following four kinds:
Sql2000 simple and practical, fully functional enough to use when learning, can be quickly opened through the command line;
Sql2005 full-featured, but installation trouble, large volume, just open the database when relatively slow, started a lot faster;
Sql2008 The new database, the function must be stronger than the previous two, recommended to use SQL2005 users to upgrade to Sql2008;
Access is small, easy to deploy (without starting the service, and so on) and easy to use.

10, ASP. What are the controls that are often used in net?
The control that the label control uses to display text. The label control cannot receive mouse or keyboard input.
TextBox control to display and update task data, and user input content.
button buttons control triggers the Click event when the user clicks or clicks a button
The ListBox and ComboBox controls look different, but are very similar in functionality, allowing the user to choose 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 is also on the market.
VS offers the following versions: Standard Edition, Professional Edition, Tools for Office and Team System Edition.
and C # Builder only for large enterprise development,
Supports enterprise-class features that are not supported by Microsoft's vs.net.
There is also a free development tool Web matrix, which is weak to almost no
Suitable for the development of the page and the code does not separate the kind of page, you can improve the level of independent write code.
But he has a. NET class library browser, as well as a database development control, is also a number of features.
Beginners Vs.net will be easy to get started,
Of course, there is also a master only with Notepad slightly!

12, why. NET program runs slowly for the first time? The ASPX page is compiled at run time when it is first accessed.
When you run it again, the speed will be normal due to the caching mechanism.

13. C # Naming Conventions
There are mainly two kinds of Pascal and camel.
Pascal: The first letter of a word, such as producttype;
Camel: First letter lowercase, the rest of the words in uppercase, such as ProductType
Here are some common C # members and their recommended naming methods:
Class Class:pascal
Enum type enum:pascal Remember, it's called Pascal, don't include an enum
The delegate delegate:pascal is named Pascal, and is not distinguished from the class name, function name by any special string
Interface Interface:pascal Note: Always start with "I" prefix, followed by Pascal name
Method function:pascal
Namespace Namespace:pascal For example: usingexcelquicker.framework
Properties: Pascal
Parameter: Camel First letter lowercase
Constant Const:camel Letter All uppercase
Local variable: Camel declares that the variable starts with STR
Data member: Camel begins with M +pascal naming rules, such as Mproducttype (m)

14, how to determine whether a program is open source or have source files?
All have a corresponding. CS Text or VB file
have project files and solution files
All DLL files or referenced components under the bin file 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.