0

I have these 2 two word documents which should be added to the web part ( a document library ) as soon as it is deployed. Is there any way to bind documents in a web part (during custom development) so that its is added by default when we deploy this web part.

Thanks

1 Answer 1

0

You can create a module by using module item template provided in VS 2010 or above, then add your documents in the solution and provision the documents through that module. Then you have the following two options.

If you add this module into the package by using package designer provided by Visual Studio. Then, whenever you would deploy the webparts wsp/package, these documents would be deployed.

Or

If you want the documents to be updated by feature then instead of adding the module in package add the module to the feature of webparts. So, whenever the feature would be activated these documents would be updated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.