Are the Webcontrols xml serializable?

A

Allan Ebdrup

I'm trying to XML serialize a Wizard control, but the following code:

StringWriter strWriter = new StringWriter();
XmlSerializer mySerializer = new XmlSerializer(typeof(Wizard1));
mySerializer.Serialize(strWriter, Wizard1);

Has the error "'_Default.Wizard1' is a 'field' but is used like a 'type' "
where I try to take typeof(Wizard1)
Can a Wizard control be XML serilized? and if so, how?

Kind Regards,
Allan Ebdrup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,362
Latest member
ChandaWagn

Latest Threads

Top