Save multiple to XML
-
I am working on a aspx page that allows a user to change the look and feel(like iGoogle). I want to save each users profile into an XML file. Can anyone please help! Thanks in advance!
-
I am working on a aspx page that allows a user to change the look and feel(like iGoogle). I want to save each users profile into an XML file. Can anyone please help! Thanks in advance!
You didn't say what is your actual problem... I guess you are familiar with XmlDocument class, if not, then shame on you, because you haven't done your homework before asking a question here ;) XmlDocument myXmlDoc = new XmlDocument(); myXmlDoc.Load(myFilepath); ... myXmlDoc.Save(myFilePath); http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx[^] You can also use ProfileProvider approach: http://aspnet.4guysfromrolla.com/articles/101806-1.aspx[^]
-
You didn't say what is your actual problem... I guess you are familiar with XmlDocument class, if not, then shame on you, because you haven't done your homework before asking a question here ;) XmlDocument myXmlDoc = new XmlDocument(); myXmlDoc.Load(myFilepath); ... myXmlDoc.Save(myFilePath); http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx[^] You can also use ProfileProvider approach: http://aspnet.4guysfromrolla.com/articles/101806-1.aspx[^]
Cool man, thanks and shame on me but ya thanks for your help :)
-
Cool man, thanks and shame on me but ya thanks for your help :)
You are welcome! and I'm sorry for being a bit grumpy, my day sucks today :) Btw, I think you really should try that profile provider mentioned, it is better than plain XML file read/write access and it is also integrated into you object model, in your code you can access your Profile properties directly. http://msdn.microsoft.com/en-us/library/system.web.profile.profilebase.aspx[^]