Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Save multiple to XML

Save multiple to XML

Scheduled Pinned Locked Moved ASP.NET
xmlhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wiekus Bezuidenhout
    wrote on last edited by
    #1

    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!

    L 1 Reply Last reply
    0
    • W Wiekus Bezuidenhout

      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!

      L Offline
      L Offline
      l0kke
      wrote on last edited by
      #2

      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[^]

      W 1 Reply Last reply
      0
      • L l0kke

        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[^]

        W Offline
        W Offline
        Wiekus Bezuidenhout
        wrote on last edited by
        #3

        Cool man, thanks and shame on me but ya thanks for your help :)

        L 1 Reply Last reply
        0
        • W Wiekus Bezuidenhout

          Cool man, thanks and shame on me but ya thanks for your help :)

          L Offline
          L Offline
          l0kke
          wrote on last edited by
          #4

          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[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups