Results 1 to 2 of 2

Thread: How to get the current website address programmatically ...

  1. #1

    Thread Starter
    Member chocoloco's Avatar
    Join Date
    Mar 2006
    Posts
    42

    How to get the current website address programmatically ...

    Hi,

    So I have a website running locally and in testing environment and in production. I need to send an email in which I want to send the link of the website.

    How do I get the current website link from the website code itself programmatically? So If I run the website in dev/test/prod, it sends the link to the environment it is hosted in?

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: How to get the current website address programmatically ...

    request.Url.AbsoluteUri

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width