SessionReturnUrl Property | |
Return url handling for View. Note: the ReturnUrl will after the read (get) reset.
Namespace:
SOWIWeb.Helper
Assembly:
SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static string ReturnUrl { get; set; }
Public Shared Property ReturnUrl As String
Get
Set
Property Value
Type:
StringRemarks Rule: no return url over link parameter!
Examples
Set Return URL (e.g. /Schacht/Index)
SOWIWeb.Helper.Session.ReturnUrl = Request.Url.PathAndQuery.ToString();
Set Return URL with fix web controller and action name and id value
SOWIWeb.Helper.Session.ReturnUrl = Url.Action("IndexByUser", "Role", new { id = pUserID });
Use Return URL. Result type of AtionResult
return this.RedirectToLocal(SOWIWeb.Helper.Session.ReturnUrl);
See Also