Need to serialize a webform

C

cbonnot

Hello,

I need to allow a user to dynamically add some controls by using
several buttons. After that, I would like to serialize the whole page
in order to be able to load the page whenever.

To do this job I created a PlaceHolder as container but when I want to
serialize it (with XMLSerializer), I raise an exception : XML attribute
"EnableTheming" already in scope of the current application". I am not
sure about the right message because I use a french version of VS2005.

Here is my code :

XmlSerializer xmlFormat = new XmlSerializer(typeof(PlaceHolder));
FileStream fStream = new FileStream(@"d:\ADMEA.xml", FileMode.Create,
FileAccess.Write, FileShare.None);
xmlFormat.Serialize(fStream, phControl);
fStream.Close();

Do you know what could be the problem and how could I do this "job".

Thanks a lot

Best Regards

Cédric
 

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
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top