How to store Array List in Session ???
-
Hi all, how to store Array list in session... when mode of session is StateServer. I try this but it gives following error. "Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'" Note : I m using asp.net with vb.net Any idea Thanks, Sajjad
-
Hi all, how to store Array list in session... when mode of session is StateServer. I try this but it gives following error. "Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'" Note : I m using asp.net with vb.net Any idea Thanks, Sajjad
What are you storing in the arraylist? If they are objects, then all the objects must be marked as serializable.
-
What are you storing in the arraylist? If they are objects, then all the objects must be marked as serializable.
thanx for reply, i am storing a object of Textbox and Label... which are generates dynamically.... Thanx once again :)
-
What are you storing in the arraylist? If they are objects, then all the objects must be marked as serializable.
Unfortunately, the textbox is not serializable. If you just need the text, then i would suggest just saving the text string in the arraylist, otherwise, you might want to have a look at this. (Considerably more complex).
-
Unfortunately, the textbox is not serializable. If you just need the text, then i would suggest just saving the text string in the arraylist, otherwise, you might want to have a look at this. (Considerably more complex).
its tooo complex :~ man... any easy solution............ thanx once again :) Sajjad
-
its tooo complex :~ man... any easy solution............ thanx once again :) Sajjad
May be you can simply store the two strings separated with a "pipe" character (|) and when you retrieve the arraylist, you can split it and you have the text once again. But this can be resource consuming since I suppose you want to have the textbox and label back, and this would mean creating new textbox and label objects. daniero