urlrewriting.net

Urlrewriting.net IsPostBack always false

谁说胖子不能爱 提交于 2019-12-25 14:04:25
问题 I am working on rewriting URLs Urlrewriting.net, and have run into what seems to be a common problem but I can seem to fix it. I'll present a simplified case. The URL rewriting is working perfectly with the rule: <urlrewritingnet rewriteOnlyVirtualUrls="true" defaultPage="default.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07"> <rewrites> <add name="catalog" virtualUrl="^~/catalog/(.*)/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString"

how to remove the querystring parameters in url in mvc4 with razer using url.action

我的梦境 提交于 2019-12-13 01:43:34
问题 url.action is : <li><a href="@Url.Action("CategoryLevel", "Product", new { CategoryId = @item._categoryId, ProductName = @Html.Raw(item._categoryName) })">@Html.Raw(item._categoryName)</a></li> it works fine but i dont want to display the qyery string in url url is: http://localhost:99/Product/CategoryLevel?CategoryId=16&ProductName=Common%20Conditions i want to display this as `http://localhost:99/Product/CategoryLevel/16/Common%20Conditions` (or)`http://localhost:99/Product/CategoryLevel