【发布时间】:2016-04-29 16:29:27
【问题描述】:
不使用mvc如何实现asp.net路由
作为一个例子,这是我的 本地主机 http://localhost/
我有 user.aspx 页面
如何获取以下 URL 以路由到此 user.aspx 页面上的不同功能?
http://localhost/user/example1
http://localhost/user/example1/setting
http://localhost/user/example1/setting/changeImage
http://localhost/user/example1/setting/enableView
http://localhost/user/example1/security
http://localhost/user/example/message/view
http://localhost/user/example/message/send
用户请求此路径时的重要问题 http://localhost/user/example/message/view 和 http://localhost/user/example/message/send 我如何显示视图或发送的形式
【问题讨论】:
-
这是一个 mvc 应用吗?你标记了 asp.net-mvc