This documentation is archived and is not being maintained.

Menu.ScrollUpImageUrl Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the URL to an image displayed in a dynamic menu to indicate that the user can scroll up for additional menu items.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public string ScrollUpImageUrl { get; set; }
/** @property */
public String get_ScrollUpImageUrl ()

/** @property */
public void set_ScrollUpImageUrl (String value)

public function get ScrollUpImageUrl () : String

public function set ScrollUpImageUrl (value : String)

Property Value

The URL to an image displayed in a dynamic menu to indicate that the user can scroll up for additional menu items. The default value is an empty string (""), which indicates that this property is not set.

Use the ScrollUpImageUrl property to specify a custom image to display at the top of each dynamic menu to indicate that the user can scroll up for additional menu items.

NoteNote

If this property is not set, the internal, default image is used.

You can specify alternate text for the image by setting the ScrollUpText property.

The following code example demonstrates how to use the ScrollUpImageUrl property to display a custom image indicating that the user can scroll up in a dynamic menu for additional menu items.


<%@ Page Language="C#" %>

<html>
  <body>
    <form runat="server">
    
      <h3>Menu Example</h3>

      <asp:menu id="NavigationMenu"
        staticdisplaylevels="2"
        staticsubmenuindent="10" 
        orientation="Vertical"
        ScrollDownImageUrl="Images\ScrollDownImage.jpg"
        ScrollDownText="Down"
        ScrollUpImageUrl="Images\ScrollUpImage.jpg"
        ScrollUpText="Up" 
        runat="server">
        
        <dynamicmenustyle Height="50"/>
      
        <items>
          <asp:menuitem text="Home">
            <asp:menuitem text="Category 1">
              <asp:menuitem text="Item 1"/>
              <asp:menuitem text="Item 2"/>
              <asp:menuitem text="Item 3"/>
              <asp:menuitem text="Item 4"/>
              <asp:menuitem text="Item 5"/>
              <asp:menuitem text="Item 6"/>
              <asp:menuitem text="Item 7"/>
              <asp:menuitem text="Item 8"/>
              <asp:menuitem text="Item 9"/>
              <asp:menuitem text="Item 10"/>
            </asp:menuitem>
          </asp:menuitem>
        </items>
      
      </asp:menu>

    </form>
  </body>
</html>


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: