The following two objects can be used to obtain information on this page:
[Csharp]
Uri uri = Request. UrlReferrer;
HttpContext http = HttpContext. Current;
/* For example: Obtain the absolute path of the current page */
String CurrentAbsoluteUrl = Request. Url. AbsolutePath. ToString ();
String current = HttpContext. Current. Request. Url. PathAndQuery. ToString ();
Uri uri = Request. UrlReferrer;
HttpContext http = HttpContext. Current;
/* For example: Obtain the absolute path of the current page */
String CurrentAbsoluteUrl = Request. Url. AbsolutePath. ToString ();
String current = HttpContext. Current. Request. Url. PathAndQuery. ToString ();
The following objects are used to obtain information about the previous page:
[Csharp]
Uri urlreferrer = Request. UrlReferrer;
/* For example, obtain the absolute path of the previous page */
String pre = Request. UrlReferrer. AbsolutePath. ToString ();
Uri urlreferrer = Request. UrlReferrer;
/* For example, obtain the absolute path of the previous page */
String pre = Request. UrlReferrer. AbsolutePath. ToString ();