开发者

.NET URI Routing MapPageRoute issue

开发者 https://www.devze.com 2023-03-01 06:14 出处:网络
Any ide开发者_如何学JAVAas on how to resolve this issue? My Global.aspx: protected void Application_Start(object sender, EventArgs e)

Any ide开发者_如何学JAVAas on how to resolve this issue?

My Global.aspx:

protected void Application_Start(object sender, EventArgs e)
{
    RouteTable.Routes.MapPageRoute<TabsResource>("users");
}

The non-generic method 'System.Web.Routing.RouteCollection.MapPageRoute(string, string, string, bool, System.Web.Routing.RouteValueDictionary, System.Web.Routing.RouteValueDictionary, System.Web.Routing.RouteValueDictionary)' cannot be used with type arguments


Sounds like it doesn't like the <TabsResource>. It doesn't appear to be a generic function. Also, I think you're missing a few arguments.

0

精彩评论

暂无评论...
验证码 换一张
取 消