Storing objects inherited from ArrayList in ViewState
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I have a question regarding viewstates. I have an object inherited from ArrayList. When I try to store it in the viewstate I can store it but after I try it to get back, I can not get my object . Instead I get the ArrayList object instead of my object. If I try to cast the ArrayList , it does not work. Because it is really an ArrayList. As far as I know if the object is serializable I should be able to store and take my objects. Do I have to write a type converter. I want to understand the reason that why it behaves like this. Regards