This article from Corporate Counsel provides great advice on how to protect your trade secrets while collaborating with third-parties. As the article notes, you should consider:
• Using a non-disclosure agreement to protect your interests
• Limiting the sharing of information to those who need to know
• Marking the information "confidential"
• Clearly identifying the items you consider to be trade secrets
• Training your staff on how to handle sensitive information