-
148
-
969
-
19.09.2015
-
United States minor outlying islands
Hi there.
I need to save some page content using a widget and flush it on page load, using same widget at the end of page.
So, is it possible do something like this:
@Html.Widget("store_variable", "save-this") at any view
and
@Html.Widget("read_variable") (and "save this" should be returned) at root foot.
??
Thanks!
Сертифицированный разработчик
-
147
-
1541
-
09.02.2015
-
United States
This page has good information about what nopCommerce Html.Widgets are used for: http://docs.nopcommerce.com/display/en/Widgets
-
148
-
969
-
19.09.2015
-
United States minor outlying islands
Thanks.
But my question is not about Widget itself. It is about keep some data while page is loading between all widgets.
I need to save some data used on page header widget and get it on last widget at bottom page (last widget processed).
So, ViewData is not helping once each partial views uses it viewdata. Session and Cache wont work because it needs to be unique on each pageview.
Сертифицированный разработчик
-
147
-
1541
-
09.02.2015
-
United States
Now that I think about it, also see PerRequestCacheManager (which is nop's wrapper for httpContext)