从list页面跳到Edit页面的时候,不走PageLoad方法,是缓存问题么?如何解决?.NET中不执行Page_Load方法Cache

解决方案 »

  1.   


    这是LIST页面
     <a href="frm_Vacation_Edit.aspx?ApplyCode=<%#Eval("ProcessApplyCode")%>&VerCode=<%#Eval("ProcessVersion")%>">
                                <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%></a>传递到Edit页面 protected void Page_Load(object sender, EventArgs e)
            {
                if (!Page.IsPostBack)
                {
                    BandData();
                }
            }这个Page_Load 就不走。是不是页面缓存问题啊?
      

  2.   

    public partial class _Edit: System.Web.UI.Page {     
      public _Edit()   
      {         this.Load+=在这里注册下这个事件试试
      }
    }Edit 类有没有继承什么呢?
      

  3.   

    如果是showModalDialog 这个JS弹框很有可能是缓存造成
      

  4.   

    如果是缓存这样这样
    Response.Expires = 0; 
        或
    在.aspx页面中的<head></head>标签中间加上下面的试试
    <META http-equiv="Pragma" content="no-cache">
        或是 
    楼上各位说的方法 
      

  5.   

    frm_Vacation_Edit.aspx顶部的@Page指令中AutoEventWireup="true"
      

  6.   

    this.Response.Expires = 0;  这个是在edit页面加还是list页面加?
      

  7.   

    edit      ....页面
      

  8.   

    在.aspx页面中的<head></head>标签中间加上下面的试试 <META http-equiv="Pragma" content="no-cache">  直接在页面加这一句吧