Logo 
Search:

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: 10534

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=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"
Namespace="Microsoft.SharePoint.WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<cc1:PeopleEditor ID="PeopleEditor1" runat="server" SelectionSet="User"
AllowEmpty="false" Width="350px" />
</div>
</form>
</body>
</html>

There is no code in the code-behind page.

Share: 

 

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.




Tagged: