Enhance Custom Control inherit menu control

Discussion in 'ASP .Net Web Controls' started by Anthony, Jul 10, 2007.

  1. Anthony

    Anthony Guest

    Hi
    I am trying to create a custom menu control which will enhance the
    current System.Web.UI.WebControls.Menu Control, therefore I start with the
    following:

    public class Folder_Menu : System.Web.UI.WebControls.Menu
    {
    }

    Everything is working but none of the setting in the .aspx file can carry
    over to my control.
    Do you have any idea why?

    aspx file setting:
    <CC:Folder_Menu ID="Custom_Menu" runat="server" Orientation="Horizontal"
    BackColor="#336699" BorderColor="BlueViolet" BorderStyle="Outset"
    BorderWidth="1" DynamicMenuItemStyle-Height="30"
    DynamicMenuItemStyle-BackColor="#336699"
    DynamicMenuItemStyle-BorderColor="#00CCFF"
    DynamicMenuItemStyle-BorderStyle="Groove"
    DynamicMenuItemStyle-BorderWidth="1" DynamicMenuItemStyle-ForeColor="White"
    ForeColor="White" DynamicHoverStyle-BackColor="#FFFFCC"
    DynamicHoverStyle-ForeColor="#000000" Font-Bold="true" Font-Italic="false"
    Font-Strikeout="false" DynamicVerticalOffset="3" DynamicHorizontalOffset="3"
    MaximumDynamicDisplayLevels="5" DynamicPopOutImageTextFormatString="Expand
    {0}" style="z-index: 101; left: 362px; position: absolute; top: 67px"
    RootPath="C:\InetPub\wwwroot">
    <LevelMenuItemStyles>
    <asp:MenuItemStyle Font-Underline="False" HorizontalPadding="5px" />
    </LevelMenuItemStyles>
    <DynamicHoverStyle BackColor="#FFFFCC" ForeColor="Black" />
    <DynamicMenuItemStyle BackColor="#336699" BorderColor="#00CCFF"
    BorderStyle="Groove" BorderWidth="1px" ForeColor="White" Height="30px" />
    </CC:Folder_Menu>
     
    Anthony, Jul 10, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mike
    Replies:
    0
    Views:
    513
  2. Ruben Lysens
    Replies:
    2
    Views:
    437
    Ruben Lysens
    Jan 4, 2005
  3. ammulu
    Replies:
    0
    Views:
    324
    ammulu
    Jul 5, 2006
  4. ammulu
    Replies:
    0
    Views:
    3,192
    ammulu
    Jul 5, 2006
  5. Nirvana

    for loop how to enhance performance

    Nirvana, Dec 6, 2004, in forum: C Programming
    Replies:
    8
    Views:
    352
    Lawrence Kirby
    Dec 8, 2004
Loading...

Share This Page