ASP. NET Secret reading notes May 16, 2016, Monday
- runat= the "Server" property represents an ASP. NET control executed on the server side;
- If you add a namespace to the Webconfig, you can use the class library for the entire project.
- Example of a Textbox for an ASP control: <asp:textbox id= "TextBox1" runat= "Server"/>
- asp: Prefix: Specifies the namespace of the control
- ID, all controls must have a unique ID that can be referenced in the code
- The sender method represents the control that raised the event, E represents the additional event information associated with the event, and the x, y coordinates of the instance click.
- The basic HTTP protocol of the World Wide Web is a stateless protocol. Every time a request is made to the Web site, it looks strange on the website.
- <%@ page Language= "C #" Trace= "true"%> can view debugging information
- Controls that do not require an attempt to state can set the EnableViewState to false;
- All content in the ASP. NET page is converted to. NET classes, including HTML and plain text content
- Sometimes it is not possible to refer to a control with an ID, and the FindControl method of the control class is available
- The general situation does not require handling any events other than the load and PreRender events. The difference between these two events is that the Load event occurs before all control events, and the PreRender event occurs after all events
- Debug code Add debug= "true"
- IsPostBack can be thought of as representing the first time the page is opened
- After reading the first chapter
From for notes (Wiz)
ASP. NET Secret reading notes