471,319 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

Placeholder control, C# SharePoint custom search box

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.

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.

Feb 16 '06 #1
0 4466

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by patrick_a | last post: by
4 posts views Thread by blue | last post: by
3 posts views Thread by Michael | last post: by
1 post views Thread by Amir Ghezelbash | last post: by
2 posts views Thread by Vishal Gupta | last post: by
reply views Thread by seigo | last post: by
5 posts views Thread by studio60podcast | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.