Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

PeopleEditor control in an .aspx page

  Asked By: Jaron    Date: Jan 15    Category: Sharepoint    Views: 12525

I put a PeopleEditor control within an .aspx web page in a web site. My web
site has a reference to Microsoft.SharePoint. I do not do anything to or with
the PeopleEditor control - I just want to render it. When I try to render the
page, I receive a 'Object reference not set to an instance of an object' error.
Here is the html for this page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
<%@ Register Assembly="Microsoft.SharePoint, Version=, Culture=neutral,
Namespace="Microsoft.SharePoint.WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
<title>Untitled Page</title>
<form id="form1" runat="server">
<cc1:PeopleEditor ID="PeopleEditor1" runat="server" SelectionSet="User"
AllowEmpty="false" Width="350px" />

There is no code in the code-behind page.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on PeopleEditor control in an .aspx page Or get search suggestion and latest updates.