simple way to disable sharepoint 2010 ribbon.

public void HideRibbon(System.Web.UI.Page page)
{
SPRibbon current = SPRibbon.GetCurrent(page);

if (current != null)
{
current.CommandUIVisible = false;
current.Visible = false;
}
}

And call this function:

HideRibbon(this.Page);