Web Forms :: How To Programmatically Control Individual Menu Item Visibility

Nov 5, 2010

I would like to programmatically hide/unhide Individual Menu items.

How is this best accomplished. I see that intellisense does not have a visibility attribute for Menu1.Items(1).

View 4 Replies


Similar Messages:

Web Forms :: How To Remove Parent Menu Item Programmatically

Aug 11, 2010

I have created my menu items using web.sitemap, asp:sitemapdatasource control and asp:menu control. I'd like to programmatically remove some of the parent menu's based on certain conditions (I'm guessing it will be under the MenuItemDataBound event).

I know how to remove child menu items, not sure how parent menu items can be removed.

View 3 Replies

Tab Control Item Contain Individual Pages?

May 20, 2010

My tab control items contain three different pages.Clicking on tabitem ,they are visible,but when want to perform javascript event on page item then problem arise.javascript well works for only first tab control item,rest of them are not work.Show me the bellow error. Microsoft JScript runtime error: 'this.GetStateInput().value' is null or not an objec

tabcontrol

**tab item1 contain page1
tab item2 contain page2
tab item3 contain page3**

i write javascript on page1 control,it's work well but rest of pages javascript show the above error message. i work on devexpress control

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCCharge.ascx.cs" Inherits="WebCore.UserControls.ChargeSettings.UCCharge" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dxtc" %>

[Code]....

View 1 Replies

Web Forms :: How To Control Visibility Of Menu Nodes Depending On User Role

Apr 16, 2010

I have a Menu control in MasterPage based on web.sitemap file. My website has roles enabled (AspNetWindowsTokenRoleProvider) and uses Windows authentication mode. So, user has to be in a specific Windows Group to be able to access the site. I need to allow some users to see all menu nodes and some restricted set of nodes. How do I do that?

I would like to be able to create, say following Windows groups:

domain_namemy_app_users
domain_namemy_app_superusers
domain_namemy_app_admins

and code sitemap nodes this way:

<siteMapNode url="~/MOC_Masterdata_MOC_Approvers_Plain.aspx" title="MOC Approvers" description="MOC Approvers" />

View 5 Replies

Web Forms :: Menu Item Click Event For Menu Control

May 7, 2015

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 .

View 1 Replies

Web Forms :: Menu Control Click Event Not Firing / How To Pass The Selected Menu Item Text To The Other Page

Jan 10, 2011

I am using frames in my webpage.in one of the frames i have a menu control whose items are database driven.when click on the menu item, i want another page to be displayed in other frame.

now i want to pass the the selected menu item text to the other page using session variable which is in the menu item click event method.but the thing is when i click on the menu item, the click event is not firing.

is there any better way to pass the selected menu item text to the other page?

View 1 Replies

Web Forms :: Finding Menu Item From Menu Control?

Apr 15, 2010

I am working with asp.net 2.0 I have 1 problem Regarding Menu Control I used menu control in Master page. Now I have to find out Menu Item from Menu control depending on Condition. how to do that on server and Client side.

My code:

<asp:Menu runat="server" Orientation="Horizontal">
<StaticMenuItemStyle CssClass="jobTabNormal" />
<StaticSelectedStyle CssClass="jobTabSelected" />
<DynamicHoverStyle CssClass="jobTabHover" Font-Bold="true" />
<DynamicMenuStyle />
<DynamicSelectedStyle CssClass="jobTabDynamicSelected" />
<Items>
<asp:MenuItem Text="Job Details" Selected="true" NavigateUrl="#" Enabled="true">
</asp:MenuItem>
<asp:MenuItem Text="Cargos" Enabled="false" NavigateUrl="~/Pages/cargoDetails.aspx">
</asp:MenuItem>.......

View 3 Replies

AJAX :: How To Highlight Menu Item Of Menu Control For Current Page

May 7, 2015

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]...

View 1 Replies

Web Forms :: Programmatically Populate A Menu Control?

Apr 1, 2010

I've an asp menu on my site. I need to dynamically populate this from my database depending on a choice made by the user.

Basically, when entering the site the User chooses a product category and this selection determines the options in my menu. I'm totally lost as to how to populate my menu each time the user changes their category - I've only ever hardcoded in the values to a this menu type so I've no idea how to programmatically populate it.

From what I can gather, it seems that its best to populate the menu via XML - if this is so could someone post a sample of what this XML structure (or let me know ehere I can view this)

View 7 Replies

Forms Data Controls :: Populating The Menu Control Programmatically Using An XML File?

Aug 10, 2010

How to Populating the Menu Control programmatically Using an XML File,

View 5 Replies

Web Forms :: Menu Control ... Cannot Select Item At 4th Level

Nov 8, 2010

I have this control on a page. The selections are static. The "maximumlevels" is set to 6. When I click on an item at the 4th level, I can see the postback occur but the "click" event doesn't fire! I'm totally baffeled. I've tested this in the Page Load event. At this point the PRIOR menu selected value shows. On the next menu_click, the previous selection shows. The first menu item is "selected" and has a value of "Overview". The fourth level item has a value of "Child". No matter how many times I selected that item, my check in the Page Load shows the value to be "Overview". I've tested the 3rd level items and on click, I can see the prior menu item value. When I click a 4th level item, the value never changes from the last 3rd level or higher item selected.

View 7 Replies

Forms Data Controls :: Menu Control Item Is Not Highlighted After Select?

Jul 13, 2010

I am facing one problem regarding asp.net menu control '

see this link

http://202.88.239.14/lv/UI/Audios.aspx?ServiceType=1

In that we added a menu control in the left side for category.Loading this control using XMLData source

I have added the code below

[Code]....

In tha XML data source transform file is a xslt file

so coming back to the issue.. When we click any menu item, the corresponding menu item is highlighted.

View 1 Replies

Web Forms :: Menu Control Dynamic Item Display Style Horizontal?

Mar 21, 2010

My menu control is in horizotal style and i want to show it's dynamic item also in horizontal style too, by default they are vertical. Plus the arrow(Static pop-out image) to be shown vertical rather horizotal which is by default. How to do that ?

View 3 Replies

Javascript - Hide Menu Item Or Dropdown Menu Item?

Aug 31, 2010

I have dropdown menu item ("pin this site") that i need to hide it or hide menu item itself ("My Network").

When I saw viewsource on page, I got below code.

<a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3
ms-topnavselected zz1_TopNavigationMenu_9" href="http://mynetworkqa.spe.org"
style="border-style:none;font-size:1em;">My Network</a>
<a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6"
href="javascript:__doPostBack(,
'ctl00$PlaceHolderTopNavBar$PlaceHolderHorizontalNav$topSiteMap''Pin')"
style="border-style:none;font-size:1em;">Pin this site</a>

How can I hide menu item?

View 1 Replies

Change Visibility Programmatically From Page_load Method?

Jun 9, 2010

gridview:

<asp:CommandField ShowDeleteButton="false" />

How to change visibility programatically from Page_load method?

View 1 Replies

Forms Data Controls :: Add A Context Menu Strip For A Grid View Control On Right Click Of The Item?

Oct 8, 2010

I want to know how to add a context menu strip for a grid view control on right click of the item..

View 3 Replies

Web Forms :: How To Build A Menu And Each Item Of The Menu Has An Image As Background

Apr 19, 2010

I am need to build a menu and each item of the menu has an image as background knowing that i depend on sitemap to build the menu i used

[Code]....

where menuitem is in a css sheet

[Code]....

it display the image but in the wrong place?

View 1 Replies

Web Forms :: Menu Collapses Automatically When Click On A Menu Item?

Feb 21, 2011

i have a menu which is collapses as a default. This is done by following query.

[Code]....

Now, the problem is, whenever i click on any menu item by expanding the menu, the item page opens but the menu collapses again. I want to let the menu remain as expanded although a menu item is clicked. i.e. menu shouldn't refresh when a menu item is clicked.

View 6 Replies

Forms Data Controls :: In Gridview Item Template - Controlling Visibility Of Linkbutton And Label

May 16, 2010

[Code]....

[Code]....

<%@ Page Title="" Language="VB" MasterPageFile="secureds_deals.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<script runat="server">
Protected DealId As Integer = 0
Protected DealName As String
Protected StartDate As Date
Protected ContractDate As Date
Protected ClosingDate As Date
Protected SubmitRole As String
Protected Status As String.......

View 6 Replies

Css - Menu Control - Keeping Parent Item Selected?

Jul 22, 2010

I have two ASP.NET Menu controls on a page. One in my header (tabs) for top level pages, e.g. ~/Default.aspx
And one in my sidebar for sub pages, e.g. ~/Products/SomeProduct.aspxI'm using the selected CSS class to ensure that the selected tab is a different colour.Works fine for top level pages, but if I view a sub page, the tab isn't assigned a CSS class of selected.How can I ensure that the top level menu item has a CSS class of selected when viewing a sub page?

View 1 Replies

AJAX :: How To Set CSS Class For Selected Item In Menu Control

Feb 3, 2014

I've been trying to find an easy way of highlighting the current selected menu item of an asp.net menu (so the user knows which page they are on), but no matter what I have tried I can't get it to work. In my markup I have:

<asp:Menu SkinID="modulesMenu" DataSourceID="modulesSource" runat="server" ID="ModulesMenu"
OnMenuItemDataBound="ModulesMenu_MenuItemDataBound">
<StaticItemTemplate>
<div>
<asp:HyperLink ID="HyperLink2" CssClass="moduleName"

[Code] ....

 This is the c# side

protected void ModulesMenu_MenuItemDataBound(object sender, MenuEventArgs e) {
SiteMapNode siteMapNode = (SiteMapNode)e.Item.DataItem;
string pathStringFormat = IsNodeActive(siteMapNode) ? ConfigurationManager.AppSettings["ModuleImagePathFormatString_Active"] : ConfigurationManager.AppSettings["ModuleImagePathFormatString_Inactive"];

[Code] .....

View 1 Replies

Create One Multipurpose Page Or Individual Pages To Display Item Catalog?

Feb 5, 2010

I am debating between 2 scenarios for handling the display of a product catalog for a website redesign I am performing. I will be using the IIRF isapi filter to perform the rewriting for an asp.net website.

Here is what the urls will look like

[URL]

[URL]

[URL]

etc...

There will be a total of 8 or 9 product group pages

Scenario 1: I have these pages rewrite to one general purpose page that will look something like this:

[URL]

Then I decide which catalog to display with a switch/case based on the querystring. All of the code for displaying the catalogs would be based off of one page.

Scenario 2: I create a separate page for processing each different catalog page. The rewriting would look something like this then:

[URL]

Then each catalog page would have it's own .aspx to handle the processing and display of that group of items.

View 3 Replies

Web Forms :: How To Remove Menu Item Or Sub Item By Value

Sep 20, 2010

I have an asp.net menu in which i have to let some nodes visible or invisible base on some logic.I know i can find value by item but i wnated to FindItemByValue of my asp.net menu.Could it be possible?

View 3 Replies

Web Forms :: Menu Control - How To Have One Item Visible Only If Textbox1="yes"

Mar 8, 2010

I have a menu control has say 5 items on it. I want one of them visible only when the textbox1.text="yes" on the page. How to code it? Currently I use enable= true but still the item appears just disabled. I want it to disappear at all if not "yes".

View 5 Replies

C# - How To Pass Command Argument While Selecting A Menu Item In System.Web.UI.WebControls.Menu

Feb 2, 2011

I have a Menu. When user clicks on the menu , I need to pass a command argument. How is that done ?

This is the code for

[code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved