Answers for "get request url in asp.net core"

C#
1

get request url in asp.net core

using Microsoft.AspNetCore.Http.Extensions; 


var url = httpContext.Request.GetEncodedUrl();
or

var url = httpContext.Request.GetDisplayUrl();
depending on the purposes.
Posted by: Guest on April-08-2021
0

get request url in asp.net core

var url = HttpContext.Current.Request.Url.AbsoluteUri;
Posted by: Guest on May-22-2021

C# Answers by Framework

Browse Popular Code Answers by Language