Hi All,
I don't get too much in the way of responses from the
PortalServer.Development group, so wondering if any C# folks here are
familiar with SharePoint development.
Just trying to bang though a simple example in this great article.
http://msdn.microsoft.com/office/def...abouttheauthor
Working on the custom search box, an ASP.NET page:
Line 1 SearchBox sb = new SearchBox();
Line 2 sb.Title = "Search SharePoint from here";
Line 3 sb.CompactMode = true;
Line 4 sb.SearchResultPageURL = "CustomSearchResults.aspx";
Line 5 PlaceHolder1.Controls.Add(sb);
The PlaceHolder1 line 5 gives me the "The Type of Namespace
'Placeholder1' could not be found", and it underlines PlaceHolder1.
I have all my using statements in order. When I browse IntelliSense
though, I find the Placeholder control at:
System.Web.UI.WebControls.PlaceHolder so I don't see how the above
Placeholder1 line would work, especially since the Placeholder1 isn't
created as the SearchBox sb is in line 1.