I want to get current page url in c#. I have tried below code
_path = System.Web.HttpContext.Current.Request.Url.Host;
but I am getting error "Object reference not set to an instance of an object"
please help me in this. Thank you
I want to get current page url in c#. I have tried below code
_path = System.Web.HttpContext.Current.Request.Url.Host;
but I am getting error "Object reference not set to an instance of an object"
please help me in this. Thank you