首页 新闻 赞助 找找看

html页面发送post请求(服务器是nginx) 响应405问题.

0
悬赏园豆:50 [待解决问题]

 

在html静态页面上ajax了Common_Control.ashx中的方法:

$.post("/Control/Common/Common_Control.ashx", { Action: "CheckLogin",   username: username }, function(data) {
                if (!data.localeCompare("Success")) {
                    window.open("/View/Page/Behind/index.aspx");
                }
                else {
                    $(".owo").html("<font color='red'>kkkkkkkk</font>");
                }
            });

nginx服务器返回的消息是405,在java中是可以通过RequestMethod.GET或者RequestMethod.POST指定后台方法的请求类型,不知道在ASP.NET如何指定。或者说通过nginx.conf配置文件如何配置来解决405问题,在网上找了一下,也没有找到解决方法,帮帮忙。

hanxuefeng的主页 hanxuefeng | 初学一级 | 园豆:86
提问于:2012-10-17 16:18
< >
分享
所有回答(2)
0
·405 - 用来访问本页面的 HTTP 谓词不被允许(方法不被允许) 

没有权限 ?
张坤 | 园豆:1865 (小虾三级) | 2012-10-17 16:23
0
jason2013 | 园豆:1998 (小虾三级) | 2012-10-17 16:23
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册