public partial class BasicInformation_Permission : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
{
Ajax.Utility.RegisterTypeForAjax(typeof(BasicInformation_Permission));
}
[Ajax.AjaxMethod()]
public string[] GetData(string wec_id)
{
return "123"
}
前台 <form id="frmBasicInformation_Permission" runat="server"》
var pArray= Web.BasicInformation_Permission.GetData(val["类别id"]);
webconfig <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
报错 BasicInformation_Permission 未定义。
大神们帮帮忙呗!
10 个解决方案
#1
打开那个script引用地址(xxx.ashx?....)看看,你可能会看到一个异常的报错内容。
#2
webconfig里面配置了么?
#3
一楼大神 说清楚点吧,怎么打开?
#4
从你的网页源代码里找到那串引用路径。
在 <form>...</form> (开头部位) 有个 <script src="ooxx.ashx?xxxxxxxxxxxxxxx"></script> 引用
把那个url直接复制到地址栏打开看看。
在 <form>...</form> (开头部位) 有个 <script src="ooxx.ashx?xxxxxxxxxxxxxxx"></script> 引用
把那个url直接复制到地址栏打开看看。
#5
是ie的开发工具吗?
没生成<script> </script> 啊
没生成<script> </script> 啊
#6
没生成说明 Ajax.Utility.RegisterTypeForAjax(typeof(BasicInformation_Permission));
没有被执行到。
Page_Load 没有执行。 检查这个。
没有被执行到。
Page_Load 没有执行。 检查这个。
#7
<script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx"></script><script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/BasicInformation_Permission,App_Web_wyiajjiq.ashx"></script>
生成了这些。。。
生成了这些。。。
#8
能不能加我QQ834726391 那样说话快!
#9
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
<script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx"></script><script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/BasicInformation_Permission,App_Web_wyiajjiq.ashx"></script>
你设置的Cookieless造成了路径匹配失败。
web.config中的handler配置的路径ajax/*.ashx没法匹配ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx
<script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx"></script><script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/BasicInformation_Permission,App_Web_wyiajjiq.ashx"></script>
你设置的Cookieless造成了路径匹配失败。
web.config中的handler配置的路径ajax/*.ashx没法匹配ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx
#10
确实!大神很厉害!当我看到生成的js的时候就知道是cookies的原因。大神加个QQ呗!
#1
打开那个script引用地址(xxx.ashx?....)看看,你可能会看到一个异常的报错内容。
#2
webconfig里面配置了么?
#3
一楼大神 说清楚点吧,怎么打开?
#4
从你的网页源代码里找到那串引用路径。
在 <form>...</form> (开头部位) 有个 <script src="ooxx.ashx?xxxxxxxxxxxxxxx"></script> 引用
把那个url直接复制到地址栏打开看看。
在 <form>...</form> (开头部位) 有个 <script src="ooxx.ashx?xxxxxxxxxxxxxxx"></script> 引用
把那个url直接复制到地址栏打开看看。
#5
是ie的开发工具吗?
没生成<script> </script> 啊
没生成<script> </script> 啊
#6
没生成说明 Ajax.Utility.RegisterTypeForAjax(typeof(BasicInformation_Permission));
没有被执行到。
Page_Load 没有执行。 检查这个。
没有被执行到。
Page_Load 没有执行。 检查这个。
#7
<script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx"></script><script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/BasicInformation_Permission,App_Web_wyiajjiq.ashx"></script>
生成了这些。。。
生成了这些。。。
#8
能不能加我QQ834726391 那样说话快!
#9
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
<script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx"></script><script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/BasicInformation_Permission,App_Web_wyiajjiq.ashx"></script>
你设置的Cookieless造成了路径匹配失败。
web.config中的handler配置的路径ajax/*.ashx没法匹配ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx
<script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx"></script><script type="text/javascript" src="/SAAS_WEB/ajax/(pviywl45q5t2yx55vu33gj55)/BasicInformation_Permission,App_Web_wyiajjiq.ashx"></script>
你设置的Cookieless造成了路径匹配失败。
web.config中的handler配置的路径ajax/*.ashx没法匹配ajax/(pviywl45q5t2yx55vu33gj55)/common.ashx
#10
确实!大神很厉害!当我看到生成的js的时候就知道是cookies的原因。大神加个QQ呗!