Enhance Custom Control inherit menu control

A

Anthony

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top