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. Advertisements

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:
    649
  2. Ruben Lysens
    Replies:
    2
    Views:
    507
    Ruben Lysens
    Jan 4, 2005
  3. ammulu
    Replies:
    0
    Views:
    398
    ammulu
    Jul 5, 2006
  4. ammulu
    Replies:
    0
    Views:
    3,314
    ammulu
    Jul 5, 2006
  5. Nirvana

    for loop how to enhance performance

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

    Custom Control - inherit child properties?

    Andrew, Jul 16, 2003, in forum: ASP .Net Building Controls
    Replies:
    6
    Views:
    370
    Andrew
    Jul 17, 2003
  7. Matt Sokol
    Replies:
    2
    Views:
    607
    Theo Tillotson
    Aug 7, 2003
  8. Joey Lee

    Setting values for custom control inherit from DataGrid

    Joey Lee, Mar 31, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    214
    Joey Lee
    Mar 31, 2005
Loading...