Click or drag to resize

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; }

Property Value

Type: String
Remarks
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