Important Note: this code was tested for compliance with Sitecore 5.0.x. It may not function correctly under Sitecore 5.1.x.
if ( Sitecore.Configuration.State.ShowEditDots )
{
HtmlTextWriter output = new HtmlTextWriter( Response.Output );
Sitecore.Xml.XPath.ItemNavigator iNav =
new Sitecore.Xml.XPath.ItemNavigator( this.CurrentItem );
Sitecore.Web.UI.WebControls.ContentDot dot =
new Sitecore.Web.UI.WebControls.ContentDot( iNav );
dot.RenderControl( output );
}