zoukankan      html  css  js  c++  java
  • 生命周期

    Page_preInit (常用)
    Page_Init     (常用)   主要完成页面初始化时运行(只运行一次)
    Page_InitComplete 
    Page_PreLoad 
    page_Load     (常用) 页面读放内存时运行,每次都会初触发
    page_LoadComplete 
    Button_Click 
    page_PreRender(常用)
    Page_PreRenderComplete 
    Page_SaveStateComplete 

         protected void Page_PreInit(object sender, EventArgs e)
         {        
             Response.Write("我执行了Page_PreInit<br/>");
         }

         protected void Page_Init(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_Init<br/>");
         }

         protected void Page_InitComplete(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_InitComplete<br/>");
         }
         protected void Page_PreLoad(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_PreLoad<br/>");
         }
         protected void Page_Load(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_Load<br/>");
         }
         protected void Page_LoadComplete(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_LoadComplete<br/>");
         }
         protected void Page_PreRender(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_PreRender<br/>");
         }
         protected void Page_Render(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_Render<br/>");
         }
         protected void Page_PreRenderComplete(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_PreRenderComplete<br/>");
         }
         protected void Page_SaveStateComplete(object sender, EventArgs e)
         {
             Response.Write("我执行了Page_SaveStateComplete<br/>");
         }

         protected void Page_Unload(object sender, EventArgs e)
         {
             //Response.Redirect("Default3.aspx");
             //Response.Write("我执行了Page_UnLoad<br/>");
         }

  • 相关阅读:
    java8泛型
    Java中各种引用(Reference)解析
    java8中字符串常量以及GC相应处理机制
    apache ignite系列(九):ignite调优
    CentOS7上OpenResty安装
    windows安装mingw和LuaJIT
    golang中Array与Slice
    apache ignite系列(九):使用ddl和dml脚本初始化ignite并使用mybatis查询缓存
    11-4 索引
    11-3 数据库的用户管理和pymysql模块的使用
  • 原文地址:https://www.cnblogs.com/wanghafan/p/2493988.html
Copyright © 2011-2022 走看看