ASP.NET4.0 URL重写代码,用于四个参数

时间:2012-07-07 13:47:57

标签: asp.net url-rewriting

我有一个页面go.aspx,它接受四个参数A,B,C,D,像这样go.aspx?A = a& B = b& C = c& D = d。 url-rewrite的工作方式是将其更改为/ a / b / c / d。但并非所有参数都会在一瞬间传递,所有可能的情况都是:

  1. go.aspx?A =一个
  2. go.aspx A = A&安培; B = B
  3. go.aspx A = A和θB = B和C = C
  4. go.aspx B = B&安培; C = C
  5. go.aspx 2 C = C
  6. go.aspx C = C&安培; d = d
  7. go.aspx B = B&安培; C = C&安培; d = d
  8. go.aspx 2 B = B
  9. go.aspx B = B&安培; d = d
  10. 为每个方案编写路由是唯一的选择还是可以修改一条路由以涵盖上述所有方案?

0 个答案:

没有答案