I have the following doubts. I have a "MyPage" page, and I declared several dictionary objects in the page class.
My doubt is
As far as I understand? How to declare an object accessible for all functions of the page class and unique for each page instance (user).
Update1
Okie, I found that the initialization of the dictionary object in the page class is done in another thread (Duplex WCF callback). But in the main page theme, the dictionary object is still zero (uninitialized). Any ideas?
Update2
Marshalling - useful by accident?
Update3
In response, John -
. , , - WCF ( ) asp.net. ? . , , () ( asp.net)?
.
, . . , . . , .
, ASP.NET!
, , , , . - , . .
, , -, , . , , ! .
, , . Windows - . Ajax -, , , .
, , , ASP.NET, .
Windows. Windows WCF, ASP.NET. WCF , , , ..
- , - . - WCF, , - . - , WCF "-" ASP.NET(, , , AJAX).
. . , - , , . , , , , , , .
. , , , , ( , ).
, ( ) . , , , . - (, ) , ( ViewState ).
, , - , :)
" " - / ,
"", " " . .
" ", " ". .
, :
ViewState, " " .
, " " .
, " " , " ", . (v.similar to session - ASP.NET).
- :)
You are correct that the static member will be the same for all instances of the page and therefore for all individual users. You need to make it a non-stationary member if you want to access it from every method in the class. You should see why the object is null. Are you creating it right at the right time?