Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Deploy XML in sharepoint

  Asked By: Benjamin    Date: May 26    Category: Sharepoint    Views: 791

I am using an XML file to store my literal Alert messages such as ("Record saved
seccessfully", "Error occured in the page" ... etc) and when exception occurred
in my code in webpart, then I am reading the proper message from the xml file
and display it in the page.

I want to know where should I deploy that XML file so that I can read it in my
webpart, and also if there some securtiy issue/configuration that I need to do.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Adalberto Merrill     Answered On: May 26

Actually, a better way to do this would be to create a Resource file, containing
a string table, and use that for storing your Alert messages. Resource files
are normally stored in the Resources directory of the 12 hive. This also
provides you an opportunity to localize your messages  by plugging into the
built-in localization capabilities of SharePoint.

If you still want to user your own XML files then I would put them in a
subdirectory under the Layouts directory of the 12 hive.

 
Didn't find what you were looking for? Find more on Deploy XML in sharepoint Or get search suggestion and latest updates.




Tagged: