asp.net的handler在IIS6.0中如何配置
时间:2010-06-09
来源:互联网
我用的是handler来来处理程序,我在环境下运行会有数据,但是我把项目部署到IIS6.0就没有数据,但是错误又不报,我不知道如何配置,我的响应数据库的代码是:
C# code
C# code
//新品区 function getProduct(opt) { var url = "Handler/IndexHandler.ashx?cmd=getProduct"; $.ajax({ url: url, dataType: 'json', type: 'post', data: { opt: opt }, success: function(result) { var html = ""; $.each(result, function(i) { html += '<div class="index_main_three_right_01_footer_01">'; html += '<div class="index_main_three_right_01_footer_01_Img">'; html += '<a href="Web/Product/ProductShow.aspx?id=' + result[i].ID + ' " target="_blank"><img style="width: 135px; height: 116px;" src="Member/Upload/Product/Thumbnail/' + result[i].Thumbnail + '" /></a></div>'; html += '<div class="index_main_three_right_01_footer_01_content">'; result[i].Pro_Name = result[i].Pro_Name.length < 12 ? result[i].Pro_Name : result[i].Pro_Name.substring(0, 12); html += '<div class="index_main_three_right_01_footer_01_content_name"><a href="Web/Product/ProductShow.aspx?id=' + result[i].ID + '" target="_blank">' + result[i].Pro_Name + '</a></div>'; html += '<div class="index_main_three_right_01_footer_01_content_sc">市场价:<del>¥' + result[i].Pro_PriceMart + '</del></div>'; html += '<div class="index_main_three_right_01_footer_01_content_gwj">网购价:<span style="color: red">¥' + result[i].Pro_PriceNet + '</span></div>'; html += '<div class="index_main_three_right_01_footer_01_content_gwj">¥PV:<span style="color: red">¥' + result[i].Pro_PV + 'PV</span></div>'; html += '</div></div>'; }); if (opt == 'new') { $('#spanNewProduct').append(html); } else if (opt == 'blank') { $('#spanBlankProduct').append(html); } else if (opt == 'hotsell') { $("#spanHotsellProduct").append(html); } } }); }
作者: aXinNo1 发布时间: 2010-06-09
高手进来帮帮忙吧!!
作者: aXinNo1 发布时间: 2010-06-10
后来发先是handler的版本过低
作者: aXinNo1 发布时间: 2010-08-02
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28