Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 02, 2012 09:58 AM by rajnikantv
Contributor
2035 Points
405 Posts
Aug 31, 2004 09:43 PM|LINK
Member
720 Points
144 Posts
Aug 31, 2004 10:27 PM|LINK
Dim noQuery As String = Regex.Match(Page.Request.Url.ToString, "^(\S+)(\?)(\S+)$").Groups(1).ToString()
All-Star
15617 Points
2302 Posts
Aug 31, 2004 11:30 PM|LINK
244 Points
53 Posts
Aug 31, 2004 11:33 PM|LINK
Response.Write(" " + Request.ServerVariables["HTTP_HOST"] + Request.ServerVariables["SCRIPT_NAME"] + " ");
65 Points
13 Posts
Sep 01, 2004 01:00 AM|LINK
Sep 03, 2004 02:39 AM|LINK
53 Points
55 Posts
Aug 21, 2008 10:39 AM|LINK
i too was stuck up with the same problem, thanks Harold for the tip.
8 Points
4 Posts
Jul 24, 2010 02:35 AM|LINK
Thanks Harold. This helped me too.
5 Posts
Jul 24, 2010 05:21 AM|LINK
you can simple do it by regex but programmatically i used
Uri uri = new Uri("http://www.google.com/q=439489"); string url = uri.Host.ToString();
2 Points
1 Post
Jan 17, 2011 07:31 AM|LINK
Thanks Harold, That worked beautifully.
Stanley Tan
Contributor
2035 Points
405 Posts
Getting URL without Query String
Aug 31, 2004 09:43 PM|LINK
theSpoke Blog
cjmaxey
Member
720 Points
144 Posts
Re: Getting URL without Query String
Aug 31, 2004 10:27 PM|LINK
bleroy
All-Star
15617 Points
2302 Posts
Re: Getting URL without Query String
Aug 31, 2004 11:30 PM|LINK
----
This posting is provided "AS IS" with no warranties, and confers no rights.
effervescent
Member
244 Points
53 Posts
Re: Getting URL without Query String
Aug 31, 2004 11:33 PM|LINK
Response.Write("-Mike" + Request.ServerVariables["HTTP_HOST"] + Request.ServerVariables["SCRIPT_NAME"] + "
");
hhoffman50
Member
65 Points
13 Posts
Re: Getting URL without Query String
Sep 01, 2004 01:00 AM|LINK
Stanley Tan
Contributor
2035 Points
405 Posts
Re: Getting URL without Query String
Sep 03, 2004 02:39 AM|LINK
theSpoke Blog
arapillai
Member
53 Points
55 Posts
Re: Getting URL without Query String
Aug 21, 2008 10:39 AM|LINK
i too was stuck up with the same problem, thanks Harold for the tip.
Lumineux
Member
8 Points
4 Posts
Re: Getting URL without Query String
Jul 24, 2010 02:35 AM|LINK
Thanks Harold. This helped me too.
ASP.NET MVC ...
Member
8 Points
5 Posts
Re: Getting URL without Query String
Jul 24, 2010 05:21 AM|LINK
you can simple do it by regex but programmatically i used
Kwad_Kore
Member
2 Points
1 Post
Re: Getting URL without Query String
Jan 17, 2011 07:31 AM|LINK
Thanks Harold, That worked beautifully.