CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/2/2008 12:50:40 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
southendlabs
Asp.Net User
Building Menu in VS20052/2/2008 12:50:40 PM

0/0

Hi Smile

I'm building asp:Menu in VS2005.

And when I'm using SiteMapDataSource like this:

 

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
StartingNodeUrl="~/mainMenu.aspx" ShowStartingNode="false" />

  VS2005 show the starting node in Design-mode Sad

But in browser all is OK, of course.

Is this ok, or there are some options in VS2005 ???


Please Mark as Answer, if my post helped you.
Klim
carterwjeff
Asp.Net User
Re: Building Menu in VS20052/2/2008 1:19:10 PM

0/0

I cannot think of any options but you could try closing Visual Studio and reopening to see if it reloads from the datasource again in design mode????  Let us know the results.

southendlabs
Asp.Net User
Re: Building Menu in VS20052/2/2008 1:34:13 PM

0/0

carterwjeff:

I cannot think of any options but you could try closing Visual Studio and reopening to see if it reloads from the datasource again in design mode????  Let us know the results.

 

No results! Sad
 


Please Mark as Answer, if my post helped you.
Klim
RJA
Asp.Net User
Re: Building Menu in VS20052/3/2008 2:50:52 AM

0/0

Can you post your web.sitemap and also list what the menu is displaying?  It should be showing the starting node only if it is the real starting node. 

southendlabs
Asp.Net User
Re: Building Menu in VS20052/3/2008 12:43:13 PM

0/0

 

RJA:

Can you post your web.sitemap and also list what the menu is displaying?  It should be showing the starting node only if it is the real starting node. 

No, it is not the real starting node, I devided my menu in 2 parts.

Here is web.sitemap:

 

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode url="~/" title="Root"  description="Root">

    <siteMapNode url="~/mainMenu.aspx" title="mainMenu"  description="mainMenu">
      <siteMapNode url="~/Default.aspx" title="??????? ????????"  description="??????? ????????" />
      <siteMapNode url="~/portfolio.aspx" title="?????????"  description="?????????? ???? ??????" />
      <siteMapNode url="~/prices.aspx" title="?????? ? ????"  description="?????? ? ????" />
      <siteMapNode url="~/order.aspx" title="???????? ??????"  description="???????? ?????? ?? ????? ?????" />
      <siteMapNode url="~/contacts.aspx" title="????????"  description="????????? ? ????, ???? ???????? ???????" />
    </siteMapNode>

    <siteMapNode url="~/subMenu.aspx" title="subMenu"  description="subMenu">
      <siteMapNode url="~/about.aspx" title="? ???-??????"  description="??????? ? ???" />
      <siteMapNode url="~/news.aspx" title="???????"  description="???????" />
      <siteMapNode url="~/technology.aspx" title="???? ??????????"  description="??????? ? ??????????? ???? ???????????" />
      <siteMapNode url="~/articles.aspx" title="??????"  description="?????? ? ???-??????????" />
      <siteMapNode url="~/vacancies.aspx" title="????????"  description="???????? ????? ???-??????" />
      <siteMapNode url="~/links.aspx" title="??????"  description="??????" />
      <siteMapNode url="~/map.aspx" title="????? ?????"  description="????? ?????" />
    </siteMapNode>

  </siteMapNode>
</siteMap>

  Sorry for titles and descriptions, they are in Russian Smile

And here are my 2 menus:

 

<asp:SiteMapDataSource ID="subMenuSiteMapDataSource" runat="server" StartingNodeUrl="~/subMenu.aspx"
ShowStartingNode="false" />

<asp:SiteMapDataSource ID="mainMenuSiteMapDataSource" runat="server" StartingNodeUrl="~/mainMenu.aspx"
ShowStartingNode="false" />

<asp:Menu ID="mainMenu" runat="server" DataSourceID="mainMenuSiteMapDataSource" Orientation="Vertical"
CssClass="mainMenuStyle" MaximumDynamicDisplayLevels="0" StaticDisplayLevels="2"
ForeColor="Yellow">
<StaticMenuItemStyle VerticalPadding="9px" />
</asp:Menu>

<asp:Menu ID="subMenu" runat="server" DataSourceID="subMenuSiteMapDataSource" Orientation="Vertical"
CssClass="subMenuStyle" MaximumDynamicDisplayLevels="0" StaticDisplayLevels="2"
ForeColor="Yellow">
<StaticMenuItemStyle VerticalPadding="2px" />
</asp:Menu>

  And in Design-mode ALL of these links are shown in both menus!!!

It is so inconvenient Sad


Please Mark as Answer, if my post helped you.
Klim
RJA
Asp.Net User
Re: Building Menu in VS20052/3/2008 1:17:41 PM

0/0

Try changing your StartingNodeOffset property of the  SiteMapDataSource to 1, then it should start at mainMenu or subMenu. The offset is supposed to control which node is going to be the root node, for purposes of display in menus or other controls.

Here's a link to more info on the StartingNodeOffset.  http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.sitemapdatasource.startingnodeoffset.aspx 

If the subMenu is a menu under the mainMenu, what about moving that so it's nested underneath the mainMenu?  Or is it supposed to be at the same level as the mainMenu? 

PS - That's pretty cool actually, I don't get to see Russian code/menus often!

southendlabs
Asp.Net User
Re: Building Menu in VS20052/3/2008 3:08:46 PM

0/0

 

RJA:
Try changing your StartingNodeOffset property of the  SiteMapDataSource to 1, then it should start at mainMenu or subMenu. The offset is supposed to control which node is going to be the root node, for purposes of display in menus or other controls.

It's not a good idea, I think Smile

But I tried, and my menus don't display even in browser! And in Display-mode of VS2005,  it is displayed only: root, root, root etc.

RJA:
 

In this article, the first example demonstrates EXACTLY, what I did. And I have no need in StartingNodeOffset property, I think.

 

RJA:
If the subMenu is a menu under the mainMenu, what about moving that so it's nested underneath the mainMenu?  Or is it supposed to be at the same level as the mainMenu?

Yes, it's nested under the mainMenu, BUT it is really far from the mainMenu, and VerticalPadding is different, so I needed two different menus.

 

RJA:
PS - That's pretty cool actually, I don't get to see Russian code/menus often!

Smile  And we have no such big and visited forums, as this forum, in russian language Sad

so, who is very interested in progamming (especially in ASP.NET programming, as I) OFTEN visit sites and forums in English.


Please Mark as Answer, if my post helped you.
Klim
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Microsoft SharePoint: Building Office 2003 Solutions Authors: Scot P. Hillier, Pages: 392, Published: 2006
Professional Visual Studio 2005 Authors: Andrew Parsons, Nick Randolph, Pages: 869, Published: 2006
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Beginning Visual Basic 2005 Authors: Thearon Willis, Bryan Newsome, Pages: 799, Published: 2006
Pro VS 2005 Reporting Using SQL Server and Crystal Reports Authors: Kevin S. Goff, Rod Paddock, Pages: 498, Published: 2006
Professional WPF Programming: .NET Development with the Windows Presentation Foundation Authors: Chris Andrade, Shawn Livermore, Mike Meyers, Scott Van Vliet, Pages: 451, Published: 2007
Pro Visual C++/CLI and the .NET 2.0 Platform Authors: Stephen R. G. Fraser, Pages: 917, Published: 2005
Learning C# 2005: Get Started with C# 2.0 and .NET Programming Authors: Jesse Liberty, Brian MacDonald, Pages: 528, Published: 2006
Beginning Visual C# 2005 Authors: Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White, Pages: 1062, Published: 2006

Web:
Help Building a Menu For DNN - Extend It! ( Programming in VS2005 ... Hi everybody my name is jean im building a custom menu for a dnn skin that im creating i have already build the user control that renders de ...
Building Browser Helper Objects with Visual Studio 2005 Oct 27, 2006 ... Building Browser Helper Objects with Visual Studio 2005 .... Save the file, and rebuild the solution from the Build menu. ...
Toolbar / Menu / Ribbon / Visual Studio 2005 Featured Toolbar / Menu / Ribbon Products for Visual Studio 2005. ... layer toolset for quickly building and styling polished application UIs and delivering ...
Missing "View in Browser" command from the context menu of VS2005 ... Re: Missing "View in Browser" command from the context menu of VS2005 .... NET MVC Application Building: Forums #2 – Create the First Unit Test ...
Jeff Abraham's WebLog : Building ARM assembly source from within ... Mar 31, 2005 ... Why don't I have the command/menu in Visual Studio 2005/2008? ... Building ARM assembly source from within VS 2005 ...
Building a Web Site using Visual Studio 2005 Create a new Web site application using File->New->Web Site menu of Visual Studio 2005, which launches the dialog shown in Figure 1. ...
TheMSsForum.com >> Dotnet >> building VS2005 project using msbuild ... How can i set different sitemapdatasource control to menu programatically? Nilkanth Desai Tag: building VS2005 project using msbuild Tag: 183991 ...
Toolbar / Menu / Ribbon / Visual Studio 2005 - Top Reviews Top Rated Toolbar / Menu / Ribbon Products for Visual Studio 2005. ... presentation layer toolset for quickly building and styling polished application UIs ...
UltraVNC :: View topic - Building with Visual Studio 2005 Express ... Building with Visual Studio 2005 Express Edition ... I had to add the header, binary and library paths manually (Menu Tools/Options, ...
Macromedia Product Feeds: Building RoboHelp_CSH.cpp in Visual ... Sep 28, 2006 ... Building RoboHelp_CSH.cpp in Visual Studio 2005 generates ... Adding a "Select All" option to a list/menu consisting of string values ...




Search This Site:










question about path of masterpage.master after i add sub domain!

menu drops down behind the content of the site

"highlight" current node in custom menu control?

how do we go back to a content page from an external asp page

master page problem when not in same folder level with aspx page

implementing ajax with treeview on masterpage

menu options visible to all after adding roles in sitemap

css control adapters

help needed passing variables through a web.sitemap

trying to get the user.identity.name in the master page code

how to manually clear sitemap?

possible bug using menucontrol and sitemapdatasource with valuefield set

trying to make it work.

treeview, sitemap, no url

master pages and formview / detailsview

menu item selected does not allow item value to be stored in a cookie

submenu not showing in masterpage

master pages not rendering properly

master page

add meta tag to master page from child page "c#"

access my user control from a nested master

accessing objects inside the master page from a calling form

changing the id attribute of the body tag in a masterpage?

masterpagefile in web.config

menu control, statichoverstyle issue with image background

can you overlay a menu on top of an image?

error: asp.net runtime error: theme 'idm' cannot be found in the application or global theme directories

datepicker doesn't work in a masterpage

reload masterpage after menuitem_click

looking for sample themes

  Privacy | Contact Us
All Times Are GMT