Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c-sharp - get current page url/path/host

string url = HttpContext.Current.Request.Url.AbsoluteUri;
// http://localhost:1302/TESTERS/Default6.aspx

string path = HttpContext.Current.Request.Url.AbsolutePath;
// /TESTERS/Default6.aspx

string host = HttpContext.Current.Request.Url.Host;
// localhost
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# underscore variable 
Csharp :: int to bool c# 
Csharp :: Install Mono project on Ubuntu 20.04 
Csharp :: list to list<selectlistitem c# 
Csharp :: unity post processing ui 2d 
Csharp :: assign color to value in c# 
Csharp :: c# consuming post rest service 
Csharp :: console.writeline in c# 
Csharp :: prevent asp button from postback 
Csharp :: how to open website from c# program 
Csharp :: c# access session in class 
Csharp :: unity button onclick 
Csharp :: hello world in unity c# 
Csharp :: c# enum syntax 
Csharp :: c# regex match 
Csharp :: generate entity model dot net core 
Csharp :: unity instantiate prefab 
Csharp :: unity c# audio source 
Csharp :: sequelize count all 
Csharp :: Replaced OS is obselete 
Csharp :: c# console password 
Csharp :: c# not 
Csharp :: c# dictionary keys to list 
Csharp :: c# convert string array to int array 
Csharp :: sqldatareader in c# 
Csharp :: multiplication of long numbers 
Csharp :: c# windows forms open directory in explorer 
Csharp :: c# quit button script 
Csharp :: c# array max 
Csharp :: c# delete files in directory and subdirectories 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =