在网址中显示通用页面名称 [英] show a common page name in the url
本文介绍了在网址中显示通用页面名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个主页面说mp.master,我有两个内容页面说cp1.aspx和cp2.aspx
当我打开cp1.aspx时,URL显示mp.master.
当我打开cp2.aspx时,URL显示mp.master.
I have a master page say mp.master, i have two content page say cp1.aspx and cp2.aspx
when i open cp1.aspx then the url show mp.master.
when i open cp2.aspx then the url show mp.master.
how can i do this?
推荐答案
您需要 URL重写.
阅读以下内容:
使用ASP.NET进行URL重写 [ MSDN:URL重写 [ URL路由 [
You need URL Rewriting.
Read these:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]
OR
Read about, In ASP.NET 4.0: URL Routing[^]
这篇关于在网址中显示通用页面名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文