开发者

asp.net url rewriting?

开发者 https://www.devze.com 2023-03-14 06:42 出处:网络
I want to rewrite the url of one of my website now currently the url looks like www.sitenanme.com/details.aspx?videoid=XXXX&title=XXXXX

I want to rewrite the url of one of my website

now currently the url looks like

www.sitenanme.com/details.aspx?videoid=XXXX&title=XXXXX

in which videoid and title comes from the codebehind file. now I have already used intellgencia url rewriter and I was able to write out the url where we hard code the url rewriting rule in web.config.

but in this case I want the url to 开发者_JAVA技巧become like

www.sitenanme.com/XXXXX(title)


It is better to use MVC framework as it will save lot of your effort. However, if you still insist, please refer to example specified at http://msdn.microsoft.com/en-us/library/ms972974.aspx

It does the same thing you are looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号