I want to get the current URL into a string that I can use for e.g. share functionality later.
String strPathAndQuery = HttpContext.Current.Request.Url.PathAndQuery;
I get the error:
The name
HttpContext
does not exist in the current context.
Is there another way?