如何隐藏URL中的扩展名(例如.aspx)?
Are you referring to URL Rewriting?
URL Rewriting is one good option.
I think ideally you'd want to use ASP.NET MVC.
If you use MVC as your website paradigm, the way that arguments are passed to the Model is through the actual addressing of the URL.
So you can then use address suffixes like: /do/useraccount
This is also what is being pushed by Microsoft and the ideas invested in ASP.NET 4.0 as they have included tools for making Model View Controller easier to implement.
Your Website < .NET 3.5 SP1 :-
使用第三方URL重写(例如Intelligencia URL重写器) Your Website >= .NET 3.5 SP1 :-
使用内置URL路由(例如“MapPageRoute”)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.