Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop down menu

Status
Not open for further replies.

kuekue

Programmer
Dec 2, 2008
35
TH
I need help for create drop down menu using "Sitemap"


i create menu in masterpage like this

//-----------------------Master page----------------------

<asp:SiteMapDataSource ID="SiteMapDataSource1"
runat="server" StartingNodeOffset="0" />
<asp:Menu ID="mnuHeader" runat="server"
CssClass="headermenulink"
DataSourceID="SiteMapDataSource1"
Orientation="Horizontal"
MaximumDynamicDisplayLevels="0"
SkipLinkText=""
StaticDisplayLevels="2"/>

//----------------------------------End master page--------------

and CSSClass is

//--------------------------------CSS-------------------------

#headermenu
{
position:relative; top: 153px; left: 250px; width: 500px;
padding: 2px 2px 2px 2px;
}

.headermenulink
{
font-family: Arial Black; font-size: 12px; font-weight: bold;
text-transform: uppercase;
}

//----------------------------End CSS-----------------------


then i need to hover on menu and show submenu i don't know how to show drop down menu with sitemap to easy edit.

Thanks.
 
if you use the menu control then you are limited to the rendered html (tables I think) you could wrap the menu in a div and control the css that way.

I would ditch the menu control all together and use nested repeaters bound to the sitemap. that way you get full control over the html.

if you need help with the styling the best place to ask is forum215

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top