Advertisement
yuvarajupadhyaya

Host URL

May 18th, 2022
475
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                     string currentUrl = HttpContext.Current.Request.Url.ToString(); //In controller use System.web....
  2.                     Uri uri = new Uri(currentUrl);
  3.                     string domainURL = uri.Scheme + Uri.SchemeDelimiter + uri.Host + ":" + uri.Port;
  4.                     string ReferrerURL = domainURL + "/admin/student/leadqualificationform/?personId=" + student.StudentId;
  5.                     Uri ReferrerURI = new Uri(ReferrerURL);
  6.                     string referrerText = "Source: " + student.ReferrerSource + Environment.NewLine + "Referrer: " + ReferrerURI;
Advertisement
RAW Paste Data Copied
Advertisement