I wanted to know how to pass a list(of string) values from one controller to another controller action. I have read that we can use TempData etc, but it is not working for me. Initially I passed like this
Return RedirectToAction("Summary", New With {.id = id,.value = valList})
But when it redirected to the new action, the list values would be null.
Then I used the TempData funda, with the following code.
If check = 0 Then
objValues.Add("true")
objValues.Add(terminationReason)
objValues.Add(getValueStr("txtNote", fc))
TempData("objValues") = objValues
Return RedirectToAction("Summary", New With {.id = id})
End If
But after the If loop is executed, I get the option in the status bar whether to Save, open or download a file, and then the processing stops.
Any help on this front would be great.
Thanks In advance.