zoukankan      html  css  js  c++  java
  • 页面自动加载

          有时候发现在页面加载时速度很慢,为了解决这一问题,我们需要利用一些控件来自动加载页面,不需要在PageLoad中加载,如果一个页面中需要用户控件时,将所有绑定的数据放在PageLoad中则会发现两个问题,一是速度慢,二是当接收参数时会为空,此时也会出错,因为页面加载的同时会运行用户控件,那么如何解决这一问题,则需要通过一些控件来加载。例如:

     <ext:Store ID="StoreCorporate" runat="server" OnRefreshData="RefreshCorporate">
              <Proxy>
                     <ext:DataSourceProxy>
                      </ext:DataSourceProxy>
               </Proxy>
               <Reader>
                     <ext:JsonReader ReaderID="wbs_id">
                              <Fields>
                                      <ext:RecordField Name="wbs_name">
                                       </ext:RecordField>
                                       <ext:RecordField Name="begindate_plan" Type="Date">
                                        </ext:RecordField>
                               </Fields>
                      </ext:JsonReader>
                </Reader>
    </ext:Store>
    

    <Proxy></Proxy>这一段就可以自动加载数据,不需要在后台PageLoad再次加载。

  • 相关阅读:
    app 后端技术
    别为大公司拼命
    ifconfig 工具
    route工具
    ping 和 traceroute 命令
    IP路由选择
    TCP的那些事儿(下)
    TCP的那些事儿(上)
    Openresty 与 Tengine
    Excel.Application SaveAs 把excel转换为html
  • 原文地址:https://www.cnblogs.com/mystar/p/1788511.html
Copyright © 2011-2022 走看看