PopOutImageUrl

Discussion in 'ASP.NET' started by shyam_oec, Nov 8, 2009.

  1. shyam_oec

    shyam_oec New Member

    Joined:
    Nov 26, 2007
    Messages:
    89
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software Developer, .NET Framework
    Location:
    Jamshedpur
    dear sir,
    plz tell what is the use of PopOutImageUrl in menu items editors,in ASP.NET using C#.
    and how it is used.
     
  2. Ami Desai

    Ami Desai Member

    Joined:
    Jan 5, 2017
    Messages:
    42
    Likes Received:
    17
    Trophy Points:
    8
    Location:
    Ahmedabad
    Home Page:
    http://www.ifourtechnolab.com/
    Hi,

    You can check it

    PopOutImageUrl gets or sets the URL to an image that is displayed in a menu item to indicate that the menu item has a dynamic submenu.

    The following example demonstrates how to use the PopOutImageUrl property to specify a custom image to display in a menu item when the menu item has a dynamic submenu.

    Code:
    <%@ Page Language="C#" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
      <head runat="server">
        <title>MenuItem Declarative Example</title>
    </head>
    <body>
        <form id="form1" runat="server">
    
          <h3>MenuItem Declarative Example</h3>
    
          <!-- Use declarative syntax to create the   -->
          <!-- menu structure. Create submenu items   -->
          <!-- by nesting them within parent menu     -->
          <!-- items.                                 -->
          <asp:menu id="NavigationMenu"
            staticdisplaylevels="1"
            staticsubmenuindent="10"
            orientation="Vertical"
            target="_blank" 
            runat="server">
    
            <items>
              <asp:menuitem navigateurl="Home.aspx"
                text="Home"
                imageurl="Images\Home.gif"
                popoutimageurl="Images\Popout.jpg"   
                tooltip="Home">
                <asp:menuitem navigateurl="Music.aspx"
                  text="Music"
                  popoutimageurl="Images\Popout.jpg"
                  tooltip="Music">
                  <asp:menuitem navigateurl="Classical.aspx"
                    text="Classical"
                    separatorimageurl="Images\Separator.jpg"
                    tooltip="Classical"/>
                  <asp:menuitem navigateurl="Rock.aspx"
                    text="Rock"
                    separatorimageurl="Images\Separator.jpg"
                    tooltip="Rock"/>
                  <asp:menuitem navigateurl="Jazz.aspx"
                    text="Jazz"
                    separatorimageurl="Images\Separator.jpg"
                    tooltip="Jazz"/>
                </asp:menuitem>
                <asp:menuitem navigateurl="Movies.aspx"
                  text="Movies"
                  popoutimageurl="Images\Popout.jpg"             
                  tooltip="Movies">
                  <asp:menuitem navigateurl="Action.aspx"
                    text="Action"
                    separatorimageurl="Images\Separator.jpg"
                    tooltip="Action"/>
                  <asp:menuitem navigateurl="Drama.aspx"
                    text="Drama"
                    separatorimageurl="Images\Separator.jpg"
                    tooltip="Drama"/>
                  <asp:menuitem navigateurl="Musical.aspx"
                    text="Musical"
                    separatorimageurl="Images\Separator.jpg"
                    tooltip="Musical"/>
                </asp:menuitem>
              </asp:menuitem>
            </items>
    
          </asp:menu>
    
        </form>
      </body>
    </html>
    Thanks
     
    shabbir likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice