M
MarioSerrano
I have a menu (new feature of framework 2.0) in an Web application. The thing
is, that i already have a function to create a dynamic menu. And it works...
but the issue is that it doesnt want to show at the page...
HTML code...
<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
DynamicHorizontalOffset="2"
Font-Bold="True" Font-Names="Verdana"
Font-Size="XX-Small" ForeColor="#990000"
Orientation="Horizontal"
StaticSubMenuIndent="10px" Width="37px" BorderStyle="Groove" >
<StaticMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#990000"
ForeColor="White" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<StaticSelectedStyle BackColor="#FFCC66" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" />
<StaticHoverStyle BackColor="#990000"
ForeColor="White" />
</asp:Menu>
// Heres the code
protected void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
this.Menu1 = BuildMenu(mySessionVariable);
}
}
// As you can see ,at html code i dont create menu items... even if i
create menu // items it still doesnt show my created menu ... i dont know
what i am missing
// im new at vs 2005 and im meeting some differences between frameworks
// 1.1 and 2.0... may be its a little issue... hope u can help me
thanks
Mario Serrano Flores
(e-mail address removed)
is, that i already have a function to create a dynamic menu. And it works...
but the issue is that it doesnt want to show at the page...
HTML code...
<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
DynamicHorizontalOffset="2"
Font-Bold="True" Font-Names="Verdana"
Font-Size="XX-Small" ForeColor="#990000"
Orientation="Horizontal"
StaticSubMenuIndent="10px" Width="37px" BorderStyle="Groove" >
<StaticMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#990000"
ForeColor="White" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<StaticSelectedStyle BackColor="#FFCC66" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" />
<StaticHoverStyle BackColor="#990000"
ForeColor="White" />
</asp:Menu>
// Heres the code
protected void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
this.Menu1 = BuildMenu(mySessionVariable);
}
}
// As you can see ,at html code i dont create menu items... even if i
create menu // items it still doesnt show my created menu ... i dont know
what i am missing
// im new at vs 2005 and im meeting some differences between frameworks
// 1.1 and 2.0... may be its a little issue... hope u can help me
thanks
Mario Serrano Flores
(e-mail address removed)