stevejhon
10-08-2008, 07:03 AM
Hey,
I'm sure this is something simple I'm not realizing has to be done for session state, but here is my problem. I have a file class that has some general information and then it has a List(Of fileProperty) where fileProperty is another sub class. Before this I was using List(Of Array List). With the arraylist it went into the session state and came back out no problem. But after switching array list to my own file property class the sub class of file property is being lost. For instance the user will instantiate a file and add some properties. Then throw it in session state. Upon pulling the file out of session state I can access the basic properties such as name, size, ext, etc. just fine. But if I go to access the List of properties it returns nothing since the list is now empty. It's pretty much the fileProperty class doesn't know it should follow the file class into session state and I don't know what to use to make that happen. I'm guessing this is where serializable or something like it comes into play, but I'm not a hundred percent sure. Thanks!
I'm sure this is something simple I'm not realizing has to be done for session state, but here is my problem. I have a file class that has some general information and then it has a List(Of fileProperty) where fileProperty is another sub class. Before this I was using List(Of Array List). With the arraylist it went into the session state and came back out no problem. But after switching array list to my own file property class the sub class of file property is being lost. For instance the user will instantiate a file and add some properties. Then throw it in session state. Upon pulling the file out of session state I can access the basic properties such as name, size, ext, etc. just fine. But if I go to access the List of properties it returns nothing since the list is now empty. It's pretty much the fileProperty class doesn't know it should follow the file class into session state and I don't know what to use to make that happen. I'm guessing this is where serializable or something like it comes into play, but I'm not a hundred percent sure. Thanks!