New to MVC, trying to pass a variable from Flash using FSCommand (works well with other functions) from one view to another. The Javascript I am using:
function p1_DoFSCommand(command, args) {
var p1Obj = InternetExplorer ? p1 : document.p1;
if (command == "nameClip") {
var FlashName = [args];
}
in the Homecontroller:
public ActionResult Testing(string FlashName)
{
ViewData["Message"] = FlashName;
return View();
}
In the second view:
Html.Encode(ViewData["message"])
Would appreciate your assistance.