CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/1/2006 10:12:39 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 104 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
Venkat2006
Asp.Net User
Horizontal Menu (Top Frame), Vertical Sub Menu (Left Frame)3/1/2006 10:12:39 PM

0/0

Hi

I am trying to use the menu control for doing the following. Horizontal menu on the top (top frame), when the horizontal menu item is clicked, a sub menu (corresponding to the clicked item) is displayed on the left frame of the page. How do I do this?.

Thanks

Venkat

dannychen
Asp.Net User
Re: Horizontal Menu (Top Frame), Vertical Sub Menu (Left Frame)3/2/2006 4:45:10 PM

0/0

Venkat,
   There are several ways to do this.  Are you using web.sitemap or some other means of describing your menu items?  Here's an example with web.sitemap, if you're using static nodes, you would need to write code to set the root nodes.

web.sitemap:

<?xml version="1.0" encoding="UTF-8"?>
<
siteMap>
  <
siteMapNode url="default.aspx" title="root">
    <
siteMapNode url="subMenu.aspx?A=1" title="Node One">
      <
siteMapNode url="a.aspx" title="One.One"></siteMapNode>
      <
siteMapNode url="b.aspx" title="One.Two"></siteMapNode>
      <
siteMapNode url="c.aspx" title="One.Three"></siteMapNode>
      <
siteMapNode url="d.aspx" title="One.Four"></siteMapNode>
    </
siteMapNode>
    <
siteMapNode url="subMenu.aspx?B=1" title="Node Two">
      <
siteMapNode url="e.aspx" title="Two.One"></siteMapNode>
      <
siteMapNode url="f.aspx" title="Two.Two"></siteMapNode>
      <
siteMapNode url="g.aspx" title="Two.Three"></siteMapNode>
      <
siteMapNode url="h.aspx" title="Two.Four"></siteMapNode>
    </
siteMapNode>
  </
siteMapNode>
</
siteMap>

topmenu.aspx

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
    <title>Untitled Page</title>
</
head>
<
body>
    <form id="form1" runat="server">
    <div>
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
        <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Target="sub" MaximumDynamicDisplayLevels=0>
        </asp:Menu>
    </div>
    </form>
</
body>
</
html>

submenu.aspx
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
    <title>Untitled Page</title>
</
head>
<
body>
    <form id="form1" runat="server">
    <div>
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" StartFromCurrentNode="true" ShowStartingNode="false" />
        <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Target="main">
        </asp:Menu>
    </div>
    </form>
</
body>
</
html>

default.html

<frameset rows="100%" cols="50%,50%">
<
frame name="top" src="topMenu.aspx">
</
frame>
<
frame name="sub" src="subMenu.aspx?A=1"></frame>
</
frameset>



disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Finale 2005 Power! Authors: Mark Johnson, Pages: 424, Published: 2004
Sequence Data Analysis Guidebook: .Sequence data analysis guidebook / Authors: Simon R. Swindell, Pages: 324, Published: 1996
InDesign CS2 at Your Fingertips Authors: Ted LoCascio, Pages: 402, Published: 2005
Mastering Macromedia Dreamweaver 3 Authors: David Crowder, Rhonda Crowder, Pages: 852, Published: 2000
Java 2 Developer: Exam Cx-310-252A and Cx-310-027 Authors: Alain Trottier, Ed Tittel, Pages: 480, Published: 2003
Special Edition Using Director 8.5: Special Edition Authors: Gary Rosenzweig, Pages: 1080, Published: 2001
Mastering VBA for Microsoft Office 2007 Authors: Richard Mansfield, Pages: 888, Published: 2008
Oracle9i JDeveloper Handbook: JDeveloper Handbook Authors: Peter Koletzke, Paul Dorsey, Avrom Faderman, Pages: 925, Published: 2003
Macromedia Flash MX for Windows and Macintosh: Visual QuickStart Guide Authors: Katherine Ulrich, Pages: 613, Published: 2002
The Handbook of Software for Engineers and Scientists Authors: Paul W. Ross, Pages: 1557, Published: 1996

Web:
DHTML Javascript Drop-Down Menu - Compile Properties: Cross-Frame ... Final_Sy = vertical distance from frame's top edge of the submenu (in pixels) ... You can avoid having frames by using a "Drifty" menu at the left or top of ...
Cross Frame DHTML Menu - Samples Sample of cross-frame dhtml menu with horizontal orientation (top-to-bottom) Sample of cross-frame dhtml menu with vertical orientation (left-to-right) ...
SimplytheBest DHTML horizontal dropdown menu using frames Set these to "menu" if you want them to be the same as the left and top position ... some levels with horizontal sub items and some with vertical sub items. ...
Submenu Positioning If you have a horizontal main menu in a navigation frame, ... not sure if the " gap" you speak of is vertical (the top of the submenu doesn't ...
Cross Frame Menu - Samples Cross frame menu horizontal orientation Sample (top-to-bottom) Cross frame menu vertical orientation Sample (left-to-right) Cross frame menu horizontal ...
vertical popup menu across frames - Ultimate Web Site Drop Down ... You can see that the menu in the left frame has no right arrow, although I hovered over "Demos .." to open the submenu. ...
ASP.NET Menu : ExpertMenu Demo : Cross-Frame Menu To build a cross-frame menu, put ExpertMenu in the top or left frame and set its TargetFrame property to the name of the frame where sub-menus have to pop ...
Woork: Simple CSS vertical menu Digg-like Jan 18, 2008 ... Now, add this simple Javascript code to show/hide the sub-menu when an ... hi how can i use this menu with frames? i am using top frame and ...
SmartMenus DHTML Menu / JavaScript Menu - Online Samples - Cross ... c_mainFrameName='main'; // the name of the main frame containing your menus c_mainFramePosition=1; // 1- bottom, 2- right, 3- top, 4- left ...
Sub menu width 100% when using frames [resolved] style=mainStyleHoriz; top=0; left=129; orientation="horizontal"; ..... The menu is horizontal and uses frames. The submenu items drop down ...




Search This Site:










windows 2003 security settings

login control - authenticate event versus loggedin event

visual studio developer news unavailable on startup

blogger.com and dotnetnuke: are they compatible?

having problem modifying controls with new dnn 2.0.1 and dnn 2.0.2

vs 2008 doesn't support sql snippets!

datagridcolumncollection in aspx source

could not load type '_default'

any announcements/articles module???

remember user fails on a mac using safari

reference .net 1.1 assembly from an asp.net 2.0 project

problems with login control on iis

password seed...

bigfoot calendar

procedure or function aspnet_membership_getpasswordwithformat has too many arguments specified

what happened to the search module?

custom error handling

sortable gridview in webpart

menu underlines visited items in ie6 only

[1.2] - rss aggregation module

what is best way?...

updateing all profiles - little problem with that

is dnn bad security?

getting error names "the server {22148139-f1fc-4eb0-b237-dfcd8a38effc} did not register with dcom within the required timeout"

adapters & detailsview

passwordrecovery disaster

sqldataprovider/config.xml ?? security ??

configuration error, master file does not exist

wrapping content into contentplaceholder of masterpage

custom textbox and xp styles

 
All Times Are GMT