[已解决问题] asp.net mvc 路由问题!
提问时间: 2008-06-08 15:10
悬赏分:50 浏览:172 次

在 asp.net mvc 3中

定义了这样的规则"albums/{folder}/{userId}/{*albumPath}"

当访问albums/aa/jinbinhan/father/child这样的路径时会生效

而我想访问albums/aa/jinbinhan/father?actio=edit

或者albums/aa/jinbinhan/father/child?action=edit时转到另外的 action

请问这样的路由规则该怎么设置!

谢谢大家!

最佳答案
在albums/{folder}/{userId}/{*albumPath}这个规则之前添加两个新规则应该就可以了: albums/{folder}/{userId}/father albums/{folder}/{userId}/child
2008/6/15 12:52:30 回答者:deerchao


提问者对于答案的评价:谢谢你!你真的帮助到我了!
其它回答(1)
albums/{folder}/{userId}/child/edit
2个月前   回答者:李永京 - 菜鸟二级
评论
   您需要登录以后才能回答!
 

我要提问

我的问题


快到期问题

> 问题排行榜

相关链接