asp.net mvc - Facebook SDK MVC CanvasRedirectToAction -


i'm trying pass value using tempdata["somevalue"] action using this.redirecttoaction("action");

    public actionresult testtempdata()     {         tempdata["teamid"] = 1;         return facebook.web.mvc.canvascontrollerextensions.canvasredirecttoaction(this,"testtempdata2");     }      public actionresult testtempdata2()     {         if (tempdata["teamid"] == null)             viewbag.title = "not found";         viewbag.title = "found";          return view("index");     } 

but on "action" tempdata empty can me ?

this because canvasredirecttoaction method redirects writing out javascript function executes when testtempdata action loaded.

tempdata preserved server-side redirects. if use redirecttoaction have tempdata url bar not change reflect current page.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -