ASP.NET Secret (Second Edition) (01)

xiaoxiao2021-03-06  81

ASP.NET Secret (Second Edition)

The first part uses the ASP.NET web form

Chapter 1 builds the ASP.NET page

ASP.NET is part of Microsoft's entire .NET framework.

Namespace is a logical grouping of class.

View status

Microsoft is called the automatic hold (persistence) of the data view status. ASP.NET controls can automatically hold view status. In fact, the view status of all controls in a web form page is saved in a hidden form field named ViewState. The form is maintained in the form of the form in the view.

ASP.NET's control is divided into two categories: HTML controls and web controls.

Web controls can be divided into: basic web control, web verification control, data control, rich web control, and mobile control.

Control events and page events

Control event: Trigger event of each control

Page Events: Init, Load, prerender, unload. The LOAD event is generated before any event generation, and the prerender event is generated after any control event.

Handle instruction

Processing instructions Control the ASP.NET page how to compile. The start of the processing instruction is marked with the character "<% @", and the end is marked with the character "%>".

Page (PAGE) Processing Directive

<% @ Page language = "c #"%>

<% @ Page Trace = "True"%>

Import (IMPORT) processing instruction

<% @ Import namespace = "system.web.mail"%>

Code declaration block