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
  • 13,333
  • 28
  • 106
  • 203

3 Answers3

2

You're looking for Request.Url.AbsoluteUri.

SLaks
  • 837,282
  • 173
  • 1,862
  • 1,933
0
<%= Request.Path %>

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

slandau
  • 22,816
  • 40
  • 119
  • 181
0
Request.Url

will give u the whole request url

fengd
  • 7,501
  • 3
  • 38
  • 43