Visual Studio :: Use Pop Menu In 2008 Like Menu Control
Jun 30, 2010How to use pop menu in visual studio 2008 (Like Menu Control).
View 1 RepliesHow to use pop menu in visual studio 2008 (Like Menu Control).
View 1 RepliesMy existing system has Visual Studio 2008 and Visual Web Developer 2010 Express. But Microsoft web installer for Webmatrix has made Wematrix Launch ribbon menu pointing to Visual Studio 2008. How could I make Webmatrix point to Visual Web Express 2010. To make use of IntelliSense and the debugger, I have to manually launch Visual Web Developer 2010 Express.
View 8 RepliesI came across this site and like the top nav menu [URL] can visual studio 2008 generate such a menu like that. Moreover, what about if I want to apply security on what to show in the menu. For instance, I will have 3 departments ( Finance, Accounting and Marketing ) each department has its own apsx page. Depending on role, I need to show / not show a page under each department. How can I enforce such thing.
View 1 Repliesthis sound may too easy, but for a person who has no idea about the asp.net is not. I am using visual studio 2008 and I want to add a drop down menu in my page. does any body have any idea how to add this please? The dropdown menu should be linked to a table from an access database since I am going to collect the data with C# therefore I decided to post in in this forum.
View 3 RepliesI added a menu avigation control in my page and i did this:
<div style="background-color: Maroon">
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" ForeColor="Black" Font-Bold="true"
BackColor="Chocolate">
<Items>
<asp:MenuItem Text="Home"></asp:MenuItem>
<asp:MenuItem Text="About Us"></asp:MenuItem>
<asp:MenuItem Text="Services"></asp:MenuItem>
<asp:MenuItem Text="Careers"></asp:MenuItem>
<asp:MenuItem Text="Contact Us"></asp:MenuItem>
</Items>
</asp:Menu>
</div>
but i cant give proper spacing between the menu items right now it is appearing like this: how to give proper spacing between the menu items them?
i m want to bind asp.net menu control from database and some of static value both, i know how to bind menu from DB and also know how to static bind the data in Menu, but i want two add two static record in menu control and after that i want to bind data from DB in menu control, and than again three static record bind in menu..... i think a lot about this and finally i thought to add my static data in dataset at particular positons, but problem is that i dont know how to bind static data in dataset at particular 1st 2nd and 4th,5th,6th pos.
View 1 RepliesI am working on a custom menu control, partially as a learning exercise, and I am having trouble with Visual Studio's IntelliSense support for it in markup view.The conventional ASP.NET menu allows you to place an arbitrary depth of <asp:MenuItem/> elements under the <Items>...</Items> element. I'm after the same behaviour for my menu.Mine unfortunately does not. VS insists on an empty tag:
<hn:AwesomeMenu runat="server" ID="menu">
<Items />
</hn:AwesomeMenu>
[code]...
I use visual web developer 2010 some commands not appear in the menu when I write it in .asp.cs file like "AffectedRows"and it not work when I write it.I Want to choose this commandes from the menu.
View 1 RepliesI was trying to create a new page .But I needed to make the positioning to absolute.But for this the layout menu is invisible.how to add this menu to the visual studio..
View 6 RepliesIs there a way to add/delete/update the default classes (for instance AspNet-Menu-WithChildren,AspNet-Menu-NonLink ) of the html generated by the asp.net menu or treeview control? I am using CSSAdapters so the menu control renders in a list format instead of table format.
View 1 RepliesI have placed an aspx menu control on my master page with orientation as Horizontal. Below is HTML markup.
HTML Code:
<asp:Menu ID="mnuMedChem" runat="server" Orientation="Horizontal" Width="100%" OnMenuItemClick="mnuMedChem_MenuItemClick">
<DynamicHoverStyle CssClass="DynamicHover" />
<DynamicMenuItemStyle CssClass="DynamicMenuItem" />
[Code]....
I have tried populating the menus from my database by using the
Code:
mnuMedChem.Items.Add
and
Code:
mnuMedChem.FindControl(value).ChildItems.Add
The menu items and the childs are populating correctly but then the menu is not being displayed on the menu control.
For the ASP.NET Menu Server Control whose RenderMode is set to "List", there is an "Orientation" property which decides whether the menu would render as a horizontal or a vertical menu. I have compared the two HTML source code and was unable to find out which part of the HTML/CSS code set the orientation of the menu(unordered list).
View 2 RepliesCurrently I have a menu control on my webform in ASP.Net 4.0 :
<div class="PNMenu">
<asp:SiteMapDataSource ID="PNSiteMap" runat="server" ShowStartingNode="false" />
<asp:Menu ID="PNMainMenu" runat="server" DataSourceID="PNSiteMap" RenderingMode="List" Orientation="Horizontal" CssClass="PN-PrimaryNavMenu" >
</asp:Menu>
</div>
I am trying to style the menu control to allow the menu items to float to the right of the container, however I am unable to do so as whenever I am styling the a, ul or li it keeps getting overidded by asp.net and floats everything left.
.PNMenu
{
clear:both;
[code]...
How to center the menuitems and highlight the selected menuitem in menu control in asp.net?
<asp:Menu ID="maspageMenu" runat="server" BackColor="#2D2D30" Width="100%" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="1.4em" Font-Strikeout="True" Font-Underline="True" ForeColor="#009933" Orientation="Horizontal" StaticSubMenuIndent="10px" BorderStyle="Groove">
<DynamicHoverStyle BackColor="#18624F" ForeColor="White" />
<DynamicMenuItemStyle BackColor="White" HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="White" BorderStyle="Double" />
[CODE]...
i have a asp menu in master page and it is populated from database.
i want if user click a link that menu link's background color should change how to do?
What I want is to show menu items Administrator or show user menu items.Show menu items using login...How I can do it with role provider, control menu and siteMap in masterpage?
View 1 RepliesI need a help in creating a vertical oriented Menu control with dynamic url's set in there Navigate Url property.Also i need to set the menu items as enable/disable in two different modes say edit/new.
We have to develop an application which has a Vertical left pane menu control which displays all the web pages (A,B,C say). Now if user is in page A and filled some data and clicks on menu control to go to page B, all the data in page A needs to be saved. Also if all the required field in page A are not filled and user navigated to page B, there will be one ! sign after the menu so that user can understand that there some some more fields need to be filled up.
We are planning to place the menu control in the Mater page. Please give me some direction to do this. My question is:
1. If user change menu (In Master Page), how should we save data?
2. How should we display the ! in the menu control?
I'm developing a web form using visual basic.net and visual studio 2008. I noticed I cannot select multiple text boxes and make the them to align all make them the same size. I select one textbox, and then hit ctrl to select more controls, it did't do anything. And also I cannot see in format menu, something like align or make the same size. But if I create a windows form, I can see the options. But I remember I can do this in visual studio 2005 before even for asp.net web form.
View 5 RepliesI have a very vexxing issue. After installing a third-party application and add-in for VSTS 2008, it has corrupted my menus/buttons by duplicating/cascading these throughout studio (i.e. Multiple sets of each menu - File, Edit, View, etc, each of which has multiple submenu entry sets). I have tried to use Add-In Manager to uninstall it and removing the application (which added the Add-in to VSTS). I tried Tools->Customize and resetting the MenuBar and ContextMenu options as well. I tried running each of the following (closing and then reopening VSTS after each) from the command prompt, which completed but did not fix things.
devenv /resetsettings
devenv /resetSkipPkgs
devenv /resetuserdata
devenv /setup
My question then, does anyone know a way to reset the menus/toolbars for VSTS 2008 to their defaults or correct this some other way? I know I can unistalll both products and resolve this but I *really* want to be able to use the third party app (Red Gate's SQL Prompt).
I have a trial version of VS2010 and created a simple out of the box ASP .Net web application. I have been playing around with the css file for the project and have yet to figure out how to effect the menu tabs.
View 2 Replies would like to ask about how can I insert a menu bar in a Web site that is created in visual studio 2010.
My toolbox seems to not have a menu tool inside.
Is there a way to drop a menu in my page like I drop a button?
I am doing a rework on one of my sites and I am attempting to use the asp:menu control.
I am using images in the static and dynamic menus. Hard coded at this point.
On my local machine it works fine but when I upload to the server, the image on the dynamci menus do not appear.
Instead I just get white space where the images should be.
Here is the code:
[code]
I know that the code depicted below will not work but I am including it to convey the idea of what I wish to accomplish. I want to use a different SiteMap to construct the menu on the displayed page for each of three different classes of service (COS).
I set a session variable named "COS" at the login and want to test its value prior to rendering each page. I want to display a menu based upon the appropriate COS. Here is my first stab at it but I know that I cannot include <asp:...> controls within the "case" statements. Can anyone suggest methods of doing this? I know C# and can use that but I do not know how to select the proper sitemap within the <menu> control. I am also using a CSS in my production version.
[Code]....
Sitemap & Menu:
<asp:SiteMapDataSource ID="Menu" runat="server" ShowStartingNode="false" />
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" OnMenuItemDataBound="OnMenuItemDataBound" DataSourceID="Menu" >
<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="Menu" />
<asp:MenuItemStyle CssClass="Level" />
</LevelMenuItemStyles>
</asp:Menu>
<siteMapNode url="javascript:Logout" title="Logout" description="Logout" roles="*">
<siteMapNode title="Logout" description="Logout"></siteMapNode>
</siteMapNode>
I want OnClick event instead of navigation .