ASP.NET components and control development reading notes

zhaozj2021-02-16  72

GET is used to retrieve the value of the attribute, and the setting operation set is used to assign a value to the property.

In order to establish an overloaded attribute, it must be taught in the class that is declared in this property, VB.NET uses the Overridable keyword.

The overload attribute is similar to the overload method. In order to reload attributes in the derived class, mark the attribute in the VB.NET keyword.

The .NET Framework Attribute structure allows metadata for components and their members.

The base class of the ASP. NET server control is System.Web.ui.Control. This class implements the IComponent interface and provides the visualization element that is used by the client browser or browsing device.

System.Web.ui.htmlTextWriter is a tool class that encapsulates the functional function of writing HTML into text stream.

If the custom control is inherited from the WebControl class, the obtained space can inherit many other properties, such as font, height, width, and some attributes, which allow the developer to customize the appearance of the control.

If the control generates a non-visual element or displays a non-HTML client, it should be derived from the System.Web.ui.Control class. If you want to provide some HTML in the visual interface generated by the client, you should derive it from System.Web.ui.WebControls.webControl. When you want to extend and modify controls, you should derive from an existing control, such as tags, buttons, text boxes, can derive from any of the SYSTEM.WEB.UI.WebControls Name control or custom controls. Do not derive from HTMLControls

System.Web.ui.WebControls Charters Contains four controls derived from the Control class: Literal, PlaceHolder, Repeater, XML. Literal control is responsible for generating the text specified by the page developer.

转载请注明原文地址:https://www.9cbs.com/read-15314.html

New Post(0)