C# Class Rebel.Cms.Web.Mvc.ActionFilters.PersistTabIndexOnRedirectAttribute

This checks if the result is a RedirectToRouteResult and if so appends a 'tabindex' query string with the 'ActiveTabIndex' parameter in the ValueProvider (the key can be customized)
Inheritance: System.Web.Mvc.ActionFilterAttribute
Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
PersistTabIndexOnRedirectAttribute ( ) : System.Web.Mvc

Constructor specifying "ActiveTabIndex" as the default key

PersistTabIndexOnRedirectAttribute ( string postValueKey ) : System.Web.Mvc

Constructor allowing you to specify the post data key to use to send as a query string to the redirect

Method Details

OnActionExecuted() public method

public OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
return void

PersistTabIndexOnRedirectAttribute() public method

Constructor specifying "ActiveTabIndex" as the default key
public PersistTabIndexOnRedirectAttribute ( ) : System.Web.Mvc
return System.Web.Mvc

PersistTabIndexOnRedirectAttribute() public method

Constructor allowing you to specify the post data key to use to send as a query string to the redirect
public PersistTabIndexOnRedirectAttribute ( string postValueKey ) : System.Web.Mvc
postValueKey string
return System.Web.Mvc