Results 1 to 1 of 1

Thread: How dow I Serialize an Object for ViewState

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    How dow I Serialize an Object for ViewState

    Trying to figure what I need to do to an object so I can store it in a ViewState instead of a Session variable. My book says to just add <Serializable()> to the Class Definition like:

    <Serializable()> Class MyClass
    ...
    End Class

    But I still get the following error:

    System.Web.HttpException: The type 'CallOuts.clsSQLInterfaceforCO' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate.

    Can anybody steer me in the right direction?
    Last edited by SeanGrebey; Sep 2nd, 2005 at 10:36 AM.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width