SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was surprised to not found the SPDataSource control in sandboxed solution (I simply want to populate a drop down list).

Did I missed something, or is this actually one the limitation of the sandbox ?

share|improve this question
up vote 1 down vote accepted

According to MSDN, SPDataSource is not available in Sandboxed solutions.

Available in Sandboxed Solutions: No

share|improve this answer
hum... I wonder what is the cause of this decision... moreover, SPD can use SPDataSource, I can't understand why such a limitation. Any suggestion to reach the same result ? (instead of manually populating the DDL ) – Steve B Jul 1 '11 at 15:48
For some reason just about every class in the Microsoft.SharePoint.WebControls namespace is not available in a sandboxed solution. – Laurie Jul 1 '11 at 16:17

Your Answer


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.