如何获取默认网址 [英] how to get the default URL
本文介绍了如何获取默认网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..如何获取默认网址
首次加载时,我具有此URL-www.Status_Maker.com
,然后在用户交易后,URL变为www.Status_Maker.com?MakerID=1234&Status=True
我的问题是我如何获取URL"www.Status_Maker.com",因为使用Request.Url.ToString我就获得了"www.Status_Maker.com?MakerID=1234&Status=True"
我想使用url ="www.Status_Maker.com"
Hi.. how can get the default URL
On first load I have this URL - www.Status_Maker.com
then after user transaction the URL became www.Status_Maker.com?MakerID=1234&Status=True
My question is how can i get the url "www.Status_Maker.com" because using the Request.Url.ToString i''m getting the "www.Status_Maker.com?MakerID=1234&Status=True"
I want to have the url = "www.Status_Maker.com"
推荐答案
检查此链接.
http://stackoverflow.com/questions/1188096/truncating- query-string-returning-clean-url-c-asp-net [ http://forums.asp.net/t/680870.aspx/1?获取+ URL +不带+ Query + String [ ^ ]
Check this links.
http://stackoverflow.com/questions/1188096/truncating-query-string-returning-clean-url-c-asp-net[^]
http://forums.asp.net/t/680870.aspx/1?Getting+URL+without+Query+String[^]
Dim host As String = String.Format("{0}://{1}", HttpContext.Current.Request.Url.Scheme, HttpContext.Current.Request.Url.Host)
感谢所有帮助...我在参考 ^ ]谢谢TJ
thanks all for the help... i used this code in my reference http://forums.asp.net/t/680870.aspx/1?Getting+URL+without+Query+String[^][^] thanks TJ
这篇关于如何获取默认网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文