Scenario:
I added few application pages and also wanted to display custom sitemap. Also these pages were using resource file which need to be copied to proper location App_Resources.
WSP doesn't have any provision to copy file in Web Application folders.
Solution:
There is a little help using STSADM.
Code:
STSADM -o copyappbincontent
It copies Web application–specific files, such as page resource (*.resx) files from
their respective locations in the 12\CONFIG folder to the correct location in each Web application on the computer.
Also you can do this using a feature receiver.
Code:
SPFarm.Local.Services.GetValue<spwebservice>().ApplyApplicationContentToLocalServer();Article:
Breadcrumb for Application Pages
0 comments:
Post a Comment