Answers for "request.Scheme request.Path"


request.Scheme request.Path

var scheme = Request.Url.Scheme; // will get http, https, etc.
var host = Request.Url.Host; // will get
var port = Request.Url.Port; // will get the port
var path = Request.Url.AbsolutePath; // should get the /pages/page1.aspx part, can't remember if it only get pages/page1.aspx
Posted by: Guest on June-11-2020

Code answers related to "request.Scheme request.Path"

Code answers related to "Scheme"

Browse Popular Code Answers by Language