src/MVCContrib/UI/MenuBuilder/MenuItem.cs
/// <summary>
/// Used internally to render the menu. Do not call this directly without first calling Prepare, or call RenderHtml(RequestContext ...)
/// </summary>
Used internally to render the menu. Do not call this directly without first calling Prepare, or call RenderHtml(RequestContext ...)
Used internally to render the menu . Do not call this directly without first calling Prepare or call RenderHtml ( RequestContext ... )
public virtual string RenderHtml()
		{
			if (!Prepared)
				throw new InvalidOperationException("Must call Prepare before RenderHtml() or call RenderHtml(RequestContext, TextWriter)");
			if (HideItem)
				return string.Empty;
			CleanTagBuilder li = new CleanTagBuilder("li");
			li.AddCssClass(ItemClass);
			li.InnerHtml = RenderLink();
			return li.ToString(TagRenderMode.Normal);
		}
public virtual string RenderHtml ( ) { if ( ! Prepared ) throw new InvalidOperationException ( " " ) ; if ( HideItem ) return string . Empty ; CleanTagBuilder li = new CleanTagBuilder ( " " ) ; li . AddCssClass ( ItemClass ) ; li . InnerHtml = RenderLink ( ) ; return li . ToString ( TagRenderMode . Normal ) ; }
Used internally to render the menu.
Used internally to render the menu .