Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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.
Comment

get request url in asp.net core

//get request url in asp.net core
using Microsoft.AspNetCore.Http.Extensions; 


var url = httpContext.Request.GetEncodedUrl();
//or
var url = httpContext.Request.GetDisplayUrl();
//or
var url = HttpContext.Current.Request.Url.AbsoluteUri;
Comment

PREVIOUS NEXT
Code Example
Csharp :: csharp string to double 
Csharp :: c# string to double 
Csharp :: new Color from hex in unity 
Csharp :: c# remove all null from list 
Csharp :: asp core asp for not working 
Csharp :: Error inflating class android.support.constraint.ConstraintLayout 
Csharp :: c# loop through array 
Csharp :: openfiledialog c# 
Csharp :: byte array to hex c# 
Csharp :: change textbox location C# 
Csharp :: scenemanager c# 
Csharp :: get random number c# 
Csharp :: swagger authentication bearer .net core 
Csharp :: unity main texture not working 
Csharp :: c# project path 
Csharp :: OnCollision update 
Csharp :: taking input in single line c# 
Csharp :: this site can’t be reachedlocalhost unexpectedly closed the connection. .net framework 
Csharp :: C# unity link button 
Csharp :: c# string to char 
Csharp :: addding two numebrs with c# 
Csharp :: change image source wpf 
Csharp :: C# multiple button click event to password textbox 
Csharp :: how to change the position of a gameobject in c# unity 
Csharp :: C# executing assembly path 
Csharp :: c# checksum 
Csharp :: unity agent does not move 
Csharp :: canty obituary schenectady ny 
Csharp :: c# start process and wait for exit code 
Csharp :: Tower of Hanoi c# 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =