ibrahimyilmaz
ibrahimyilmaz

Reputation: 18919

How to Display SharePoint controls in ASP.NET Designer in Visual Studio 2008

How I can display SharePoint controls (such as the PeoplePicker) in an ASP.NET Page in Visual Studio 2008?

I drag and drop the PeoplePicker but it gives me: Error rendering control.

Upvotes: 0

Views: 1121

Answers (2)

Faheem
Faheem

Reputation: 3569

You can not display SharePoint controls inside Visual Studio because of their dependencies. The controls are only visible inside SharePoint Designer.

Are you trying to use SharePoint controls in ASP.NET which are not supposed to be run inside SharePoint? If so then it might be not a good idea for several reasons. See following thread for details

Sharepoint controls in ASP.NET application

If not then either SharePoint designer or code view in Visual Studio are your friends.

Upvotes: 1

Johan Leino
Johan Leino

Reputation: 3533

The peoplepicker(for example) needs the context of SharePoint (SPContext.Current) which simply isn´t present inside of VS. Use the sourceview and deploy to SP and everything works fine (or at least ok).

Upvotes: 0

Related Questions