Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We are designing a system where we will have a site per customer. The site will be created based on a custom site template.

This site will have a Silverlight webpart, that will get data from a Line-of-Business application via a web service.

Is there a way in which the Silverlight application can know which site it is on, so that it requests the correct data?

share|improve this question

2 Answers 2

If you are using the client object model you should be able to say ClientContext.Current.Web to get the current site.

http://msdn.microsoft.com/en-us/library/ee538971.aspx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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