I
Islamegy®
Hello,
In my web application (C#) i have 2 questions related to collection state:
1- I have a Datagrid Bounded to custom Collection.. Everytime i add new item
i can see this item in the Grid but after add new item i found only the last
one even Datagrid viewstate is Enabled..
I think the problem is in my Collection which have [Serializable]
attribute.. I tried to add my collection to cache and viewstate but the
problem is still there, How could i save my collections state??
2- When i add my collection to the cache and add new item to the collection
is this apply to the cache or i have to add it back again to the cache or
view state (Is it a refrence or new instance)?? and what about viewstate is
it work in the same way as cache and what is the diffrnce between cache &
session coz as i know use the memory??
thanx
In my web application (C#) i have 2 questions related to collection state:
1- I have a Datagrid Bounded to custom Collection.. Everytime i add new item
i can see this item in the Grid but after add new item i found only the last
one even Datagrid viewstate is Enabled..
I think the problem is in my Collection which have [Serializable]
attribute.. I tried to add my collection to cache and viewstate but the
problem is still there, How could i save my collections state??
2- When i add my collection to the cache and add new item to the collection
is this apply to the cache or i have to add it back again to the cache or
view state (Is it a refrence or new instance)?? and what about viewstate is
it work in the same way as cache and what is the diffrnce between cache &
session coz as i know use the memory??
thanx