web.config 里面配是这样的: <add virtualUrl="~/(\w+)-(\d+).html$" destinationUrl="~/ProductType.aspx?TypeName=$1&current=$2"/>
而前台运行地址:http://localhost:1486/Source/Ugg-Kids-Boots-2.html 为什么我Request.QueryString["TypeName"]取的时候把 Ugg-Kids-Boots-2这一串都给获取了 而Request.QueryString["current"] 这个值取不到啊 这个该怎么改好 大家帮帮忙啊
而前台运行地址:http://localhost:1486/Source/Ugg-Kids-Boots-2.html 为什么我Request.QueryString["TypeName"]取的时候把 Ugg-Kids-Boots-2这一串都给获取了 而Request.QueryString["current"] 这个值取不到啊 这个该怎么改好 大家帮帮忙啊
这样才能取到它们的值,不然你就得写程序去分解或分析url,取得你所要的值。