I have a simple class with some properties and other data. Untill i stick serializable attribute to the class, i cannot save the object of the class into the viewstate.
Because the ViewState is serialized before it is sent to the Client.
Maybe you can store your data in the Session object instead. It depends on what your class does and how it's used.