Loading ...

Reading Value from a URL

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  client side web development   » Reading Value from a URL

Reading Value from a URL

Posts under the topic: Reading Value from a URL

Posted: 10/20/2011

Lurker 5  points  Lurker
  • Joined on: 10/20/2011
  • Posts: 1

I have a URL . How can i reterive the value of this URL and display it on my console .

 i need to pass it to the browser and fetch the value of that comes from this URL and display the VALUE in the Console.  


Posted: 10/21/2011

Starter 727  points  Starter
  • Joined on: 6/6/2011
  • Posts: 74

Hi Bhavika,

'http or https' - HttpContext.Current.Request.Url.Scheme

' domain(:port)' - HttpContext.Current.Request.Url.Authority

'/AppPath' - HttpContext.Current.Request.ApplicationPath;

If you want to get the hole URL: 

Request.Url.AbsoluteUri

Regards,

Gjorgji Dimitrov


Page 1 of 1 (2 items)