Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 28, 2010 09:27 PM by chevinho
Member
1 Points
21 Posts
Feb 12, 2009 07:40 AM|LINK
Hi,
How can i get current opened page url address?
Thanks.
All-Star
73649 Points
7914 Posts
Moderator
Feb 12, 2009 07:57 AM|LINK
Request.Url will return a fully qualified url ,
also see
http://www.west-wind.com/weblog/posts/269.aspx
56620 Points
8958 Posts
Feb 12, 2009 08:01 AM|LINK
Hey you get get the current page by doing the following:
String pageUrl = ""; pageUrl = Request.Url;
402 Points
141 Posts
Feb 12, 2009 08:08 AM|LINK
Try this
string CurrentURL = System.Web.HttpContext.Current.Request.Url;
Mark as Answer
Muhamad Ovais
Participant
1753 Points
370 Posts
Feb 12, 2009 08:23 AM|LINK
hi, amin.mashayekhi
You got the current Page url in following way.
string pageUrl = Request.Url.AbsoluteUri
Response.Write(pageUrl);
another way
string pageUrl2 = HttpContext.Current.Request.Url.AbsoluteUri
Response.Write(pageUrl2 );
Contributor
2637 Points
638 Posts
Feb 12, 2009 08:26 AM|LINK
Dim
sMyScreenPath = System.Web.HttpContext.Current.Request.Url.AbsolutePath
1714 Points
309 Posts
Feb 12, 2009 08:43 AM|LINK
HttpContext.Current.Request.Url will give u the URL.
15 Points
7 Posts
Oct 28, 2010 09:24 PM|LINK
Request.URL request request.browser Request Object Properties
Oct 28, 2010 09:27 PM|LINK
amin.mashaye...
Member
1 Points
21 Posts
Get Current Page URL Address
Feb 12, 2009 07:40 AM|LINK
Hi,
How can i get current opened page url address?
Thanks.
anas
All-Star
73649 Points
7914 Posts
Moderator
Re: Get Current Page URL Address
Feb 12, 2009 07:57 AM|LINK
Request.Url will return a fully qualified url ,
also see
http://www.west-wind.com/weblog/posts/269.aspx
rtpHarry
All-Star
56620 Points
8958 Posts
Re: Get Current Page URL Address
Feb 12, 2009 08:01 AM|LINK
Hey you get get the current page by doing the following:
ovaisgeo
Member
402 Points
141 Posts
Re: Get Current Page URL Address
Feb 12, 2009 08:08 AM|LINK
Try this
string CurrentURL = System.Web.HttpContext.Current.Request.Url;
Mark as Answer
Muhamad Ovais
vijjendra
Participant
1753 Points
370 Posts
Re: Get Current Page URL Address
Feb 12, 2009 08:23 AM|LINK
hi, amin.mashayekhi
You got the current Page url in following way.
string pageUrl = Request.Url.AbsoluteUri
Response.Write(pageUrl);
another way
string pageUrl2 = HttpContext.Current.Request.Url.AbsoluteUri
Response.Write(pageUrl2 );
Vijendra Singh
SMAS-SMAS
Contributor
2637 Points
638 Posts
Re: Get Current Page URL Address
Feb 12, 2009 08:26 AM|LINK
Dim
sMyScreenPath As StringsMyScreenPath = System.Web.HttpContext.Current.Request.Url.AbsolutePath
nishanthnair
Participant
1714 Points
309 Posts
Re: Get Current Page URL Address
Feb 12, 2009 08:43 AM|LINK
HttpContext.Current.Request.Url will give u the URL.
http://nishanthnair.com
chevinho
Member
15 Points
7 Posts
Re: Get Current Page URL Address
Oct 28, 2010 09:24 PM|LINK
see subsequent post
Request.URL request request.browser Request Object Properties
chevinho
Member
15 Points
7 Posts
Re: Get Current Page URL Address
Oct 28, 2010 09:27 PM|LINK
Here is a list I normally refer to for this type of information:
Hopefully you will find this useful!
Request.URL request request.browser Request Object Properties