vinoth
vinoth

Reputation:

asp.net mvc renderaction

I call the above line in my asp.net mvc view. How do i retrieve the dictionary values from the test controller?

Upvotes: 0

Views: 364

Answers (2)

BFree
BFree

Reputation: 103740

You can't. The point of RenderAction is to let the controller you're calling do what it normally would without you worrying about what's happening. Maybe a partial view might be better suited for you in your case, it's hard to say without seeing the big picture...

Upvotes: 1

Rick
Rick

Reputation: 998

You can pass information using ViewData e.g. ViewData["MyDictionary"] = myDictionary;

Upvotes: 1

Related Questions