是否可以在ASP.net而不是MVC中进行URL映射或路由来制作prety URL [英] is it possible to make URL mapping or routing in ASP.net and not MVC to make prety URL
本文介绍了是否可以在ASP.net而不是MVC中进行URL映射或路由来制作prety URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道它可以用MVC完成,但它可以用普通的ASP.Net网站完成
i想要例如www.stackoverflow.com/questions/ask?title=some事情........
就像www.stackoverflow.com/questions/whatever只是为了让它变得美观和易读。
i我不想在IIS中编辑任何规则,我想用C#代码来完成。
任何帮助都表示赞赏。
i know that it can be done with MVC, but can it be done with the ordinary ASP.Net website
i want for example "www.stackoverflow.com/questions/ask?title=some thing........"
to be like "www.stackoverflow.com/questions/whatever" just to make it nice and easy to read.
i don't want to edit any rule in IIS, i want to do it in C# code.
any help is appreciated.
推荐答案
嗨Prutal,
我想你能找到答案这里 [ ^ ]和这里 [ ^ ]。
希望这对你有所帮助。
问候,
RK
Hi Prutal,
I think you can find your answer here[^] and here[^].
Hope this helps you a bit.
Regards,
RK
这篇关于是否可以在ASP.net而不是MVC中进行URL映射或路由来制作prety URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文