ASP.NET Slide Menu Documentation for .NET

<%@ Register TagPrefix="osm" Namespace="OboutInc.SlideMenu" Assembly="obout_SlideMenu3_Pro_Net" %>

Methods

Name Description
methodAddParent Adds a new Parent.

AddParent(id, [innerHtml], [url], [onClientClick], [urlTitle], [urlTarget])
  • id - Item ID.
  • innerHtml - Text or HTML to display inside the item. Optional
  • url - Url to open when item is clicked. Optional
  • onClientClick - javascript code to execute when item is clicked. Optional
  • urlTitle - title for the URL. Optional
  • urlTarget - target frame or window name for URL. Optional
osm.AddParent("prod", "Our Products");
methodAddChild Adds a new Child.

AddChild(id, [innerHtml], [url], [onClientClick], [urlTitle], [urlTarget])
  • id - Item ID.
  • innerHtml - Text or HTML to display inside the item. Optional
  • url - Url to open when item is clicked. Optional
  • onClientClick - javascript code to execute when item is clicked. Optional
  • urlTitle - title for the URL. Optional
  • urlTarget - target frame or window name for URL. Optional
osm.AddChild("comp", "Computers", "http://www.company.com/products.aspx");

Properties - styles

Name Description
propertyStyleFolder Path to the folder with style to use. Optional
osm.StyleFolder = "/slidemenu/styles/xp_blue";

Properties - behavior

Name Description
propertySelectedId ID of Slide Menu Parent or Child which will be selected on load. Optional
osm.SelectedId = "prod";
propertySpeed Speed with which Slide Menu expands and collapses. Default value: 10. Optional
osm.Speed = 20;
propertyKeepExpanded When true, Slide Menu will not collapse an open Parent when another Parent is clicked. Default value: false. Optional
osm.KeepExpanded = true;
propertyUrlTarget Name of the target frame for each URL in the menu. Optional
osm.UrlTarget = "mainframe";
propertyHeight Height for each children box. Default value is 100. Optional
osm.Height = 150;

Note: For dynamic height, set height = -1

Parent and Child properties

Name Description
propertyUrl URL for Slide Menu Parent or Child. Optional
<osm:Parent Id="p1" Url="http://www.obout.com">Obout inc</osm:Parent>
propertyUrlTarget URL target for this item's URL. Optional
<osm:Parent Id="p1" Url="http://www.obout.com" UrlTarget="_blank">
    Obout inc
</osm:Parent>
propertyUrlTitle Title for the URL. Optional
<osm:Parent Id="p1" Url="http://www.obout.com" UrlTitle="our homepage">
    Obout inc
</osm:Parent>
propertyInnerHtml Text or HTML to display inside Slide Menu Parent or Child. Optional
<osm:Parent Id="p1" InnerHtml="Hello world" />
propertyOnClientClick JavaScript code to execute when user clicks on this Parent or Child. Optional
<osm:Parent Id="p1" OnClientClick="alert('Hello world');">Obout inc</osm:Parent>

"One more thing I would like to share with you guys is, what a great outstanding solutions and very quick response with efficient support. I'm really so inspired with these components and it’s like very superior while working with these components. I'm so impressed and great work. I hope you are shaking presentation in this world :) Thank you once again ALL THE BEST!"

R.B.

Random testimonial   All testimonials