url重写 正则表达式问题
<add url= "news/(\d+)$ " mappedUrl= "news/default.aspx?id=$1 "/>
<add url= "news/(\d+)$ " mappedUrl= "news/test.aspx?sUserName=$1 "/>
这样写就会出现问题,它都转向news/default.aspx,请问要怎么解决这样的问题?
------解决方案--------------------楼主想匹配什么样的内容??
------解决方案--------------------试下
<add url= "news/(\d+) " mappedUrl= "news/default.aspx?id=$1 "/>
<add url= "news/(\d+) " mappedUrl= "news/test.aspx?sUserName=$1 "/>
------解决方案--------------------写一个类专门处理,绑定到web.config