如何在asp.net中的url中隐藏页面名称 [英] How to hide page name in url in asp.net

查看:78
本文介绍了如何在asp.net中的url中隐藏页面名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
实际上,我想在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆