FineUI(ExtAspnet),EXT.NET都是已经封装好了的组件,从工具箱里面引用后,直接从工具栏里面拖拉控件就可以用了.
但是不用这些组件进行开发的话,而直接用纯EXTJS的话,是不是得每次在页面中进行JS的引用呢?
比如:
  <script src="lib/extjs/adapter/ext/ext‐base.js"></script>   <script src="lib/extjs/ext‐all‐debug.js"></script> 
这样会不会太麻烦了呢,而且相关控件的代码也要从例子中复制过来啊?小弟摸索了几天,始终无法入门,请求大家能够指点一下怎样入门,不胜感激!~~~

解决方案 »

  1.   

    资源文件是自动引入进来的<script src="/res.axd?js=ext-core.js&v=1" type="text/javascript"></script>
    <script src="/res.axd?js=ext-foundation.js&v=1" type="text/javascript"></script>
    <script src="/res.axd?js=ext-form.js&v=1" type="text/javascript"></script>
    <script src="/res.axd?js=x.js&v=3.2.3" type="text/javascript"></script>
    <script src="/res.axd?lang=ext-lang-zh_CN.js&v=1" type="text/javascript"></script>
      

  2.   

    就像这样在控件中去定义好要引入的文件
    [assembly: WebResource("OpenFlashChart.open-flash-chart.swf", "application/x-shockwave-flash")]
    [assembly: WebResource("OpenFlashChart.swfobject.js", "text/javascript")]        protected override void OnInit(EventArgs e)
            {
                const string key = "swfobject";
                string swfobjectfile = ExternalSWFObjectFile;
                if (string.IsNullOrEmpty(ExternalSWFObjectFile))
                    swfobjectfile = Page.ClientScript.GetWebResourceUrl(this.GetType(), "OpenFlashChart.swfobject.js");
                
                if (!this.Page.ClientScript.IsClientScriptBlockRegistered(key))
                {
                    this.Page.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), key, "<script type=\"text/javascript\" src=\"" + swfobjectfile + "\"></script>");
                }
                base.OnInit(e);
            }