【发布时间】:2014-02-13 10:54:17
【问题描述】:
我正在调用只有一个参数的控件。
http://localhost:49809/Import/QBData/test
[ActionName("QBData")]
public bool getconnection(string id)
{
return true;
}
...它正在调用
但是下面的控件没有调用:总是它给出:Http 404 Not found...
我用过这个:
http://localhost:49809/Import/Test/checking
[ActionName("Test")]
public bool Testing(string id)
{
return true;
}
谁能告诉我......为什么它不打电话......
谢谢!
【问题讨论】:
-
你能分享你的路线配置吗?
-
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
-
@Havab,只有那个?!如果是这样,难怪它会爆炸:)
标签: asp.net-mvc model-view-controller