用ClientScriptManager.GetPostBackEventReference 方法产生__doPostBack()函数
- <%@ Page Language="C#" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <script runat="server">
- public class MyControl : Label, IPostBackEventHandler
- {
- // Use the constructor to defined default label text.
- public MyControl()
- {
- base.Text