如何在asp.net中的url中隐藏页面名称 [英] How to hide page name in url in asp.net
问题描述
大家好
实际上,我想在asp.net中的url中隐藏页面名称,而在url中仅显示查询字符串名称
(例如)
如果我的网址是这个
http://localhost:1072/RealEstateChd26april/SearchDetail.aspx?ID = 8f51e4b5- c33c-4096-bbe5-ed1ac4ac2e6c& Table = Kothi& sts = Kothi& type = s [ http://localhost:1072/RealEstateChd26april /?ID = 8f51e4b5-c33c-4096-bbe5-ed1ac4ac2e6c& Table = Kothi& sts = Kothi& type = s [
hi all
actually i want to hide the page name in url in asp.net and show only the query string name in url
(e.g)
if my url is this
http://localhost:1072/RealEstateChd26april/SearchDetail.aspx?ID=8f51e4b5-c33c-4096-bbe5-ed1ac4ac2e6c&Table=Kothi&sts=Kothi&type=s[^]
than i want to show this url like this(i don,t want to show the name of page SearchDetail.aspx in url)
http://localhost:1072/RealEstateChd26april/?ID=8f51e4b5-c33c-4096-bbe5-ed1ac4ac2e6c&Table=Kothi&sts=Kothi&type=s[^]
so please help me
thanks in advance
推荐答案
开始 ^ ].
这个概念被称为 URLRewriting
通过以下链接,Microsoft上有一篇不错的文章
参见此处 [
This concept is known as URLRewriting
Go through the following link, microsoft has a good article on it
See Here[^]
这篇关于如何在asp.net中的url中隐藏页面名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!