看了一些文章说 ajaxpro注册需要发300-400MS时间
自定义注册 则需要 30‘-40ms
我很好奇 于是自己也试了下,,,环境 vs2005+sqlserver2000public static void RegAjax(HtmlHead Header, Type type)
    {
        // 用来代替 AjaxPro.Utility.RegisterTypeForAjax(Type type);方法   
        string assemblyName = type.FullName + "," + type.Assembly.FullName.Substring(0, type.Assembly.FullName.IndexOf(","));
        if (type.Assembly.FullName.StartsWith("App_Code."))
            assemblyName = type.FullName + ",App_Code";
        Literal l = new Literal();
        l.Text = "\n<script type=\"text/javascript\" src=\"/ajaxpro/prototype.ashx\"></script>\n"
        + "<script type=\"text/javascript\" src=\"/ajaxpro/core.ashx\"></script>\n"
        + "<script type=\"text/javascript\" src=\"/ajaxpro/converter.ashx\"></script>\n"
        + "<script type=\"text/javascript\" src=\"/ajaxpro/" + assemblyName + ".ashx\"></script>\n";
        Header.Controls.Add(l);
    } 这样一直报 ajaxpro 未定义 这个错误。
我看了 客户端
AjaxPro.Utility.RegisterTypeForAjax(typeof(Ajaxpro_AjaxproPage))
这种注册方法在客户端注册的脚本
如下 在body中 显示正常 
<body>
<script type="text/javascript" src="/ajaxpro/prototype.ashx"></script>
<script type="text/javascript" src="/ajaxpro/core.ashx"></script>
<script type="text/javascript" src="/ajaxpro/converter.ashx"></script>
<script type="text/javascript" src="/ajaxpro/Ajaxpro_AjaxproPage,App_Web_1ib2mrxg.ashx"></script>
<body>
用自定义方法 RegAjax(header,typeof())
也注册上了
但是 注册到 head里 (ajaxpro未定义)
《head》
<script type="text/javascript" src="/ajaxpro/prototype.ashx"></script>
<script type="text/javascript" src="/ajaxpro/core.ashx"></script>
<script type="text/javascript" src="/ajaxpro/converter.ashx"></script>
<script type="text/javascript" src="/ajaxpro/Ajaxpro_AjaxproPage,App_Web_1ib2mrxg.ashx"></script>《head》
-------------------------------------------------------------------------------------------------
大家有方法么?或者修改regajax方法 能把这个
<script type="text/javascript" src="/ajaxpro/prototype.ashx"></script>
<script type="text/javascript" src="/ajaxpro/core.ashx"></script>
<script type="text/javascript" src="/ajaxpro/converter.ashx"></script>
<script type="text/javascript" src="/ajaxpro/Ajaxpro_AjaxproPage,App_Web_1ib2mrxg.ashx"></script>
注册到body中去啊 或者各位弟兄们 有啥子更好的办法啊。呵呵