Click here to Skip to main content
15,915,172 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: reduce this big code Pin
duo!@#26-Jul-07 15:25
duo!@#26-Jul-07 15:25 
AnswerRe: reduce this big code Pin
Sonia Gupta25-Jul-07 18:50
Sonia Gupta25-Jul-07 18:50 
AnswerRe: reduce this big code Pin
Brady Kelly27-Jul-07 3:56
Brady Kelly27-Jul-07 3:56 
GeneralRe: reduce this big code Pin
duo!@#29-Jul-07 16:04
duo!@#29-Jul-07 16:04 
GeneralRe: reduce this big code Pin
Brady Kelly29-Jul-07 21:43
Brady Kelly29-Jul-07 21:43 
QuestionDeployement of web application Issue Pin
padmaja_200625-Jul-07 17:35
padmaja_200625-Jul-07 17:35 
QuestionMenu Control Formatting Pin
dwreck_stg25-Jul-07 15:50
dwreck_stg25-Jul-07 15:50 
AnswerRe: Menu Control Formatting Pin
dwreck_stg26-Jul-07 3:23
dwreck_stg26-Jul-07 3:23 
I solved my own problem, and understand it a better now, so I can be more specific.

I use two CSS classes...

.menuNormal
{
color:White;
background-color:Blue;
border-color:Blue;
border-width:1px;
border-style:solid;
font-family:Microsoft Sans Serif;
font-size:Smaller;
font-weight:bold;
height:35px;
padding: 3px;
}
.menuHover
{
color:Blue;
background-color:White;
border-color:Blue;
border-width:1px;
border-style:solid;
font-family:Microsoft Sans Serif;
font-size:Smaller;
font-weight:bold;
height:35px;
padding:3px;
}

And make use of an ASP.NET 2.0 Menu Control

<asp:Menu
ID="Menu1"
runat="server"
Orientation="Horizontal"
DataSourceID="siteData"
StaticDisplayLevels="2"

CssClass="menuNormal">

<DynamicHoverStyle CssClass="menuHover"/>
<DynamicMenuItemStyle CssClass="menuNormal"/>
<DynamicMenuStyle CssClass="menuNormal" />

<StaticHoverStyle CssClass="menuHover"/>
<StaticMenuItemStyle CssClass="menuNormal"/>
<StaticMenuStyle CssClass="menuNormal"/>
</asp:Menu>

The code above causes the menu to render with the funny extra border on the root node of dynamic submenus.

Adding HorizontalPadding="0" BorderStyle="None" to the DynamicMenuStyle property fixes this. Example code is shown below.

/<asp:Menu
ID="Menu1"
runat="server"
Orientation="Horizontal"
DataSourceID="siteData"
StaticDisplayLevels="2"

CssClass="menuNormal">

<DynamicHoverStyle CssClass="menuHover"/>
<DynamicMenuItemStyle CssClass="menuNormal"/>
<DynamicMenuStyle CssClass="menuNormal" HorizontalPadding="0" BorderStyle="None" />

<StaticHoverStyle CssClass="menuHover"/>
<StaticMenuItemStyle CssClass="menuNormal"/>
<StaticMenuStyle CssClass="menuNormal"/>
</asp:Menu>

-Dwreck
QuestionSSO Help Pin
Ridge Howison25-Jul-07 12:59
Ridge Howison25-Jul-07 12:59 
QuestionDisplay text with label [modified] Pin
ASPnoob25-Jul-07 12:48
ASPnoob25-Jul-07 12:48 
AnswerRe: Display text with label Pin
Christian Graus25-Jul-07 13:05
protectorChristian Graus25-Jul-07 13:05 
GeneralRe: Display text with label [modified] Pin
ASPnoob25-Jul-07 14:03
ASPnoob25-Jul-07 14:03 
GeneralRe: Display text with label Pin
doWhileSomething25-Jul-07 16:37
doWhileSomething25-Jul-07 16:37 
QuestionDB2 problem? Pin
kidus125-Jul-07 11:15
kidus125-Jul-07 11:15 
QuestionProblem with IIS7 & ASP 3 (Two) Pin
mehrdadc4825-Jul-07 9:46
mehrdadc4825-Jul-07 9:46 
AnswerRe: Problem with IIS7 & ASP 3 (Two) Pin
Guffa25-Jul-07 10:20
Guffa25-Jul-07 10:20 
AnswerRe: Problem with IIS7 & ASP 3 (Two) Pin
Fred_Smith25-Jul-07 12:42
Fred_Smith25-Jul-07 12:42 
QuestionProblem with IIS7 & ASP 3 (one) Pin
mehrdadc4825-Jul-07 9:44
mehrdadc4825-Jul-07 9:44 
QuestionError : Attempted to read or write protected memory Pin
morteza5725-Jul-07 7:51
morteza5725-Jul-07 7:51 
QuestionEmail with multiple address Pin
Sam Heller25-Jul-07 7:37
Sam Heller25-Jul-07 7:37 
AnswerRe: Email with multiple address Pin
kubben25-Jul-07 8:23
kubben25-Jul-07 8:23 
QuestionHow to Populate a treeview with a file Pin
Edward LaPinski25-Jul-07 5:45
Edward LaPinski25-Jul-07 5:45 
AnswerRe: How to Populate a treeview with a file Pin
doWhileSomething25-Jul-07 11:19
doWhileSomething25-Jul-07 11:19 
Question2.0 Reference dataview control text in html??? Pin
munklefish25-Jul-07 5:19
munklefish25-Jul-07 5:19 
Questionregular expression for date Pin
rahul.net1125-Jul-07 5:19
rahul.net1125-Jul-07 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.