Asp ASP. net3.5 control and component development technology-(1) Server Control Overview

Source: Internet
Author: User

Server Control Overview

1. Types of server controls and system base classes developed by ASP. NET controls

Control, webcontrol, compositecontrol, databoundcontrol, hierarchicaldataboundcontrol, hierarchichicalperformancecontrol,

Listcontrol, basevalidator.

2. Control lifecycle,

The lifecycle of a server control is similar to that of a page, but different from that of a page. Because a page is a container, its lifecycle is finer, because the page generation process is actually a process of server controls, but there is no need to manage themes, template pages, and many other places. For example, in the init phase, the page is divided into the template page and topic in the preinit phase. oninit initializes the Server Control and sets the container for the control. The initcomplete enables the control to have view tracking capabilities.

  • Initialization (oninit)
  • Loadviewstate)
  • Loadpostdata)
  • Onload)
  • Data Return Event Notification (raisepostdatachangedevent)
  • Raisepostbackevent)
  • Onprerender)
  • Saveviewstate)
  • Rendering (render)
  • Unload (onUnload)
  • Release (dispose)

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.