Guest User

Untitled

a guest
Oct 1st, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class SpecialActionFilter : ActionFilterAttribute
  2. {
  3. public override void OnActionExecuting(ActionExecutingContext filterContext)
  4. {
  5. foreach (string value in filterContext.Controller.ValueProvider.Keys)
  6. {
  7. string h = filterContext.Controller.ValueProvider[value].AttemptedValue;
  8.  
  9. if (h == "1")
  10. {
  11. //set the value of the key to be say "one".
  12. }
  13. }
  14.  
  15. base.OnActionExecuting(filterContext);
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment