0

how do i get the current url of the view i'm on as well as the fqdn of the machine to form a hyperlink that will go in an email?

Rod
  • 14,529
  • 31
  • 118
  • 230

3 Answers3

2

You're looking for Request.Url.AbsoluteUri.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
0
<%= Request.Path %>

And you can pre-pend that with your base URL, which should stay consistent throughout the app.

slandau
  • 23,528
  • 42
  • 122
  • 184
0
Request.Url

will give u the whole request url

fengd
  • 7,551
  • 3
  • 41
  • 44