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
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