.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

how do I achieve a reusable area in multiple views? (navigation menu)

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :ASP.Net
I am new to mvc.I want to build my navigation so I can use it on multiple views.  How do I do this? Nested views?  Can someone please tell me the best practice and show me a quick example?

View Complete Post

More Related Resource Links

Trying to move FK links from list as columns to my navigation area.



I'm using vs2010, EF. I have a left column simular to a navigation area and I'm trying to figure out a way to display the FK links that appear at the end of a list as columns, in my navigation area.  One thought was to place a duplicate table in the navigation area and hide all the columns except for the FK links. Is there an easier way to accomplish this.

Thanks, Jeff


Page to page navigation from listbox menu?

I am wondering if anyone can share with good sample on how to create menu populated in a listbox from xml and have page to page navigation between xaml pages. I need to have a unique Uri link associated with each item in the listbox. Any advice is highly appreciated. Thank you in advance,

How to create SharePoint workflow[Visual studio] with Infopath multiple views?

Hi Every body,I have Travel Request infopath form with 3 views(Requester/Manager/Traveldesk).Ones the user submitt the data then workflow will be start. In manager view he will select next level approver also. Ones manager approve/reject then pass to Traveldesk and they will forward travel inforamtion to user.I am new to workflow so How to approach my requirment any ideas and examples.Thanks in advance  

horizontal navigation menu instead of vertical

Hello I'm a newbie and using the internet/publication site type. Is there a simple way to have the Navigation (menu) oriented in a horizontal with dropdown menus instead of vertical? It would also be nice if the horizontal navigation wouldn't not scroll with the rest of the page. Thanks! Matt==GP Blog== http://dynamicssmallbusiness.blogspot.com/ ==Free GP Addons/Customizations/Tips== http://landiscomputer.com/offer/1010_GP_Newsletter.htm ==GP Tweets== http://twitter.com/search?q=%23dyngp#search?q=%23dyngp

Top navigation menu having submenu in Team site in MOSS2007

Hi, In MOSS2007, Collaboration portal site is showing sub menu on onmouseover of top navigation menu, but it's not showing in case of Team Site template. I would like to know how to achieve this. I tried to activate publishing feature on team site, but doesn't work.

How do I change the top menu navigation for layouts like Site Settings?

I used something similiar to what Kalik posted on this thread, however, I'm not seeing the same results in layouts like Site Settings.  Any answers would be appreciated. Thank you, Mike ADD TO TOP LINE! <%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly="Microsoft.SharePoint.Publishing, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> ADD IN HEADER AREA! <PublishingNavigation:PortalSiteMapDataSource ID="siteMapDataSource1" runat="server" SiteMapProvider="CombinedNavSiteMapProvider" EnableViewState="true" StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="false" TreatStartingNodeAsCurrent="true" TrimNonCurrentTypes="Heading"/> </HEAD> REPLACE STANDARD TOP NAV CODE! <!--- Modified Top Nav ---->    <SharePoint:aspmenu    ID="GlobalNav"    Runat="server"    DataSourceID="siteMapDataSource1"    Orientation="Horizontal"     MaximumDynamicDisplayLevels="1"     StaticPopoutImageUrl="/_layouts/images/menudark.gif"    StaticSubMenuIndent="0px"  &nb

Top navigation menu render problem

Hi, we have a problem with top menu used in a sharepoint site. There is a main site and one subsite wich inherits navigation from the parent. When we are viewing the main site top menu renders ok. When we are viewing child site, with some computers and browsers (not all) instead of the name of the parent site it apears the link. Name of the main site is 'Activity' Name of the subsite is 'Programs' Problem Accesing main site menu renders like ->    Activity  |   Programs Accesing child site menu renders like ->     sites/activity  |   Programs I have uploaded some image to clarify http://yfrog.com/jltopmenurendererrorp   At the master page the top menu is set in this way     <PublishingNavigation:PortalSiteMapDataSource ID="topSiteMap" runat="server" EnableViewState="false" SiteMapProvider="CombinedNavSiteMapProvider" StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="true" TrimNonCurrentTypes="Heading" /> <SharePoint:AspMenu ID="TopNavigationMenuV42" Runat="server" EnableViewState="false" DataSourceID="topSiteMap" AccessKey="<%$Resources:wss,navigation_accesskey%>" UseSimpleRendering="true" U

Put metadata navigation above quick launch menu

Hi, I have a problem with left quick lunch navigation. My need is to set my metadata navigation and filtering above quick launch menu. I have no found any artical about this. Does anyone have idea how to do this.  Thanks.

Global navigation and partial views


I guess this is mostly a theory question since I'm very new to MVC.  If you have a global navigation tree, Countries --> States --> Cities for example, how do you correctly implement this in MVC2?  In my example, the view model for States does not contain Countries and the tree would break as it needs the Countries list to build the tree.

It sounds like this should be easy, but it doesn't sound right to include the entire model for a single State or City view.

How to create sub-menu in Global-Navigation ?

i want to create sub-menu for my sharepoint site like :

MainMenu > SubMenu > LinkSample1 .... LinkSamplen

assumming we have two Heading (MainMenu and SubMenu) and multiple link (like LinkSample1). i want place SubMenu underneath of MainMenu to accomplish this, but Headings can not place underneath of another Heading.
can anybody help me to workaround this problem ?
this is my Signature

SharePoint 2010 Navigation Menu

I have created a custom menu using basic HTML <ul> tags in SharePoint 2010. I have set Anonymous access to the entire site but I don't see the menu unless and until I sign in. For a anonymous user the default Global Navigation is being displayed even though I have deleted the navigation through SharePoint Designer.

Navigation Menu with MVC


I have a scenario I'm not sure how to handle, and am hoping someone can point me to an example or best practice.

This is for an application where you can fill out screens in order, or jump around.  My site.master has a ContentPlaceholder for Navigation, and one for the main content.  The content pages each RenderPartial a user control that has PREVIOUS and NEXT buttons, which post back to the controller, which saves (or returns to the same View if !ModelState.IsValid), checks which button was clicked, and navigates.  That part works just fine.

I also want a list of screens in my Navigation pane that are also links.  In fact, as links (or ActionLinks), they work fine, but my problem is that they don't give the current controller an opportunity to save the data.

How do I get links in a separate ContentPlaceHolder to trigger an action on the current controller?  (Note that each controller has an Index, Create, Edit, and Delete, and the action, once fired, will have to determine whether there's anything to save.  But I think I can handle that part.)


- Buildings (index, create, edit, delete)
- Vehicles (index, create, edit, delete)
- Equipment (index, create, edit, delete)
- Contractors (index, create, edit, dele

Navigation Menu is not working in Crome


Hi I have created a Navigation Menu with some csc style. But it is working for IE, Firefox but not showing the style in Crome properly.

Please see the code below ------

                <asp:Menu ID="NavigationMenu" runat="server"
                        <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>

How can I add the same column to multiple list views in one operation?


Or do I have to go through my list of 20 views and do the changes to each one at a time?


Using xsd.exe tool, how to generate reusable base types when generating from multiple xsd's with sa

Using xsd.exe tool, how to generate reusable base types when generating from multiple xsd's with same includes?

Display subsites as drop down menu in top navigation



I want to display subsites as drop down menu in top navigation can any one help me please

menu navigation in 2010 not working on 3.5 server


I have created a basic horizontal menu in MVWD 2010 which works when I debug it on my own machine. But as soon as I upload to a ASP.net 3.5 sever online, the dynamic aspect doesnt work. Are there some major differences in frameowrk 3.5 to 4?





ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend