locked
Export Sql data to resource files RRS feed

  • Question

  • User-230561051 posted
    hi.

    I've implemented localization using resource files in my .net app.
    Now i need to store the text strings in sql because i need to access it elsewhere and from other platforms.

    so i want to know if i can export my sql table that contains the texts to a resource file, making it on the fly, and it being updated directly on my page so that i dont need to compile anything.

    or do i need to create a system for localization using regular xml?

    -anders
    Wednesday, December 21, 2005 8:20 AM

All replies

  • User1183903743 posted

    which version?

    in v2.0 you can do a custom ResourceProvider.

    here is a howto for v1.x

    http://www.openmymind.net/index.aspx?documentId=52

    if it is just one time export you can use the System.Resources.ResXResourceReader and System.Resources.ResXResourceWriter

    or just the Xml Dom( XmlDocument,  DataSet class. The resx structure is so simple that any of these would work.

    HTH!

    Wednesday, December 28, 2005 5:14 PM
  • User-230561051 posted

    thanx alot.

    - Anders Bohlin

    Thursday, December 29, 2005 4:18 AM