I am trying to get a site running using ASP.NET MVC 3 and I came across a new dynamic ViewModel. It is very useful to quickly pass values to a view without using magic lines. I am wondering if there is something similar for TempData that stores values after RedirectToAction.
Thank.
You can enable session state, as was used in web forms, and use this to store data, if you want, is that what interests you? Just google "session state in asp.net mvc"
When you do this ...
TempData ( "test" ) = " "
, tempdata.test( , tempdata ).
TempData MVC 3 ( ), . :
TempData
TempData.Account = "Geronimo"
Account / .
Account
ViewBag
ViewBag.Acount = "Geronimo"
.
Source: https://habr.com/ru/post/1776636/More articles:Socket thread response in Java - javaC ++: comparing the performance of pointers pointing to different locations in a char array (attempt to find out alignment) - c ++Не удалось загрузить из модального диалога, window.showModalDialog - asp.netWhy is the main thing needed in the program - cКак я могу реализовать event acessors с DynamicObject в С# - c#Не удается создать очередь в Websphere MQ Explorer V7.0 - ibm-mqConstructor parameter not available in init - phpКак загрузить файл, используя Python Mechanize, с помощью твиста:) - pythonShow data from 2 models in 1 view - ruby-on-railsIs there a Z-index in an SSRS chart? - chartsAll Articles