WebConfig.cs 配置
    <httpHandlers>
      <add verb="*" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
    </httpHandlers>页面
    <script type="text/javascript" src="ajaxpro/converter.ashx"></script>
    <script type="text/javascript" src="ajaxpro/Happytech.HY.Proc.Ajax.MUsersAjax,Happytech.HY.Proc.Ajax.ashx"></script> function CheckLogin(obj) {
            var userNo = document.all['txt_user'].value.trim();
            var userPwd = document.all['txt_pwd'].value.trim();            if (userNo == "" || userPwd == "") {
                ymPrompt.alert({ message: "用户名,密码不能为空!", slideShowHide: true, title: "提示", handler: null });
                return;
            }            obj.style.display = "none";
            document.all['logining'].style.display = "";            Happytech.HY.Proc.Ajax.MUsersAjax.CheckUserLogin(userNo, userPwd
            , function (result) {
                if (result != null && result.value.IsSuccess) {
                    window.opener = null;
                    var w = openPopup('index.aspx', 'index', '0', '0', false, true, true);
                    //禁用表单
                    document.all['txt_user'].disabled = 'disabled ';
                    document.all['txt_pwd'].disabled = 'disabled ';
                    document.all['logining'].innerHTML = '<a href="javascript:void(0)" onclick="window.close();">点击关闭此窗口...</a>';
                    //--
                    w.opener = null;
                    window.close();
                }
                else {
                    ymPrompt.alert({ message: result.value.ErrorMessage, slideShowHide: false, title: "登录失败", handler: null });
                    obj.style.display = "";
                    document.all['logining'].style.display = "none";
                }
            });
        }
“WebDev.WebServer40.EXE”(托管(v4.0.30319)): 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c9c22d46\e55970cc\assembly\dl3\61a64c08\0baad3cb_ea00cd01\AjaxPro.2.DLL”
“WebDev.WebServer40.EXE”(托管(v4.0.30319)): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“WebDev.WebServer40.EXE”(托管(v4.0.30319)): 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c9c22d46\e55970cc\assembly\dl3\b950651b\d69fdc25_dc76cd01\Happytech.HY.Proc.Ajax.DLL”
Microsoft JScript 运行时错误: 'Happytech' 未定义运行时提示 找不到 happytech

解决方案 »

  1.   

    一个 HTML 登陆页面调用后台的 ajxpro 方法验证用户名密码;“WebDev.WebServer40.EXE”(托管(v4.0.30319)): 已加载“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c9c22d46\e55970cc\assembly\dl3\b950651b\d69fdc25_dc76cd01\Happytech.HY.Proc.Ajax.DLL”
    Microsoft JScript 运行时错误: 'Happytech' 未定义运行调试时已经提示加载 hapytech.hy.proc.ajax.dll;
    但是找不到  happytech
      

  2.   

    啥年代了,还用AjaxPro ,况且这玩意貌似还好其他js类库有不兼容,直接上jquery吧