CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of menu
C#
public static MvcHtmlString MenuItem(this HtmlHelper helper, string linkText, string actionName, string controllerName, string className)
        {
            var sb = new StringBuilder("<li");
            var urlHelper = new UrlHelper(helper.ViewContext.RequestContext);
            var currentControllerName = helper.ViewContext.RouteData.Values["controller"] as string;
            
            if (!string.IsNullOrWhiteSpace(className))
            {
                sb.AppendFormat(CultureInfo.InvariantCulture, " class=\"{0}\"", className);
            }
by alfonso   May 02, 2011 @ 1:22pm
Tags: MenuItem
59 Views
no comments
 
C#
namespace BitSpy.Controls.Behaviors.Beahviors.Blend.Behaviors
{
    using System;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Input;
    using System.Windows.Interactivity;
    using System.Security; 
 
    /// <summary>
by Joe Gershgorin   June 19, 2010 @ 1:27pm
1466 Views
no comments
 
'Form1.vb
#Region " Import Declaratives "
 
Imports DevExpress.XtraEditors
Imports DevExpress.Utils.Menu
Imports System.IO
Imports System.Xml.Serialization
 
#End Region
by Thom Lamb   February 11, 2010 @ 6:53am
2276 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate