Basic Asp.net knowledge,
1. [project structure]
1.1 file Suffix:
. Cs source file (program code)
. Csproj project file (Manage File items)
. Sln solution file (manage projects)
. Config configuration file
1.2 Main functions:
// You can name the underlined part by yourself.
Static void Main (string [] args)
{
Main function content
}
1.3 input statement:
// Read a row of data and assign it to s
String s = Console. ReadLine ();
1.4 output statement:
Console Writeline ("output content ");
Console Write ("output content ");
Difference between Writeline and Write: automatic line feed after Writeline output.
2. Data Type]
2.1 Value Type
--- INTEGER: signed and unsigned. (Difference --- the unsigned integer type must be greater than the positive number of the type Integer type. The formula is 2x + 1)
Signed integer: sbyte, short, int, long (from small to large)
Unsigned integer: byte, ushort, uint, ulong
--- Floating point: float, double, decimal (from small to big)
--- Character: char
--- Boolean (Bool): true, false (used for judgment)
--- String type: string (equivalent to the concept of character type, which has a long length. The definition should be enclosed in double quotation marks .)
--- DateTime
--- Enumeration type: Enum E (,,,,,,)
--- Structure type: Struct S (,,,,,,)
2.2 reference type
--- String type: string
--- Class type: Final base class of all other types of Object
Class C (,) User-Defined type
--- Interface type: Interface I (,,,,,,)
--- Array type: one-dimension and multi-dimensional arrays. Such as int [] and int [,]
3 [vs common software shortcut keys]
Shift + Delete a row
Alt + → prompt, change
Ctrl + (k, c) comment the selected row
Ctrl + (k, u) uncomment the selected row
4 [differences between constants and variables]
Add const before the variable type. (A constant cannot be assigned a value for the second time)
[Note]
What basic knowledge is needed to learn about aspnet?
Tell you the learning sequence first:
1. Create web pages (including HTML, CSS, and javascript)
2. ASP, in addition, there are many concepts in asp.net which are the same as those in asp. You need to master them: vbscript, asp object, and database (with access ))
3. windows system and network BASICS (this is not necessary, but it is necessary to become an expert, for example, to understand some network protocols, but it is not recommended that you have a thorough understanding, competition is not a network)
5. SQL Server
6. C #, not to mention
7.asp.net
The above is just an order. If you are eager to get started, you can put the two and three sides first.
In addition, there are some things that can be learned after learning 1, such as javascript, such as Ajax and XML. Because these technologies will be widely used in asp.net.
Basic ASPNET knowledge
It requires a bit of html language basics. the programming idea is necessary, and the object-oriented programming method should also have one thing. The script used is usually used in two types: therefore, c #/vb.net needs to understand the syntax of any of these two languages. For the future, it is also necessary to master some database knowledge.