Web Forms :: Hide Menu Before Login And Show After?

Jan 7, 2011

I am using the standard template for web form with login and menu..

I would like to disable the menu when u enter the page (done this by visable = false). but after a user have logged in, i want it to be shown..

How do i get a hold on the navigation menu when a user login?

View 7 Replies


Similar Messages:

AJAX :: Hide Show Menu Based On UserID

Jan 1, 2014

I am making the asp.net application which consist of 6 form n based on user id pass want to show form e.g.: for admin all form appear for finance only 2 form appear when he enter his login id pass how can I?

View 1 Replies

How To Show / Hide Custom Menu Items As Based On Roles

Mar 12, 2010

I have a custom menu, which leverages the standard asp.net sitemap. It works well but some of my pages are dynamically generated by URL rewriter, so they don't sit in the sitemap XML file. At the moment I rolled a custom solution which shows/hides menu items via CSS class and a programmatic check of the role that the user is in. It works ok until I visit a dynamic page that doesn't exist in the sitemap file. I've tried the "roles" attribute in the sitemap file with security trimming but it isn't working because I have a custom menu.

Is there a way I could leverage the roles attribute in the sitemap file to show/hide menu items for my custom control below, even when some pages are not in the sitemap? My menu control is below...

<div class="menu">
<ul>
<asp:Repeater ID="rpt" runat="server" DataSourceID="smdsMenuPrimary"
EnableViewState="False">
<ItemTemplate>
<li class="<%#GetDisplayClass((SiteMapNode)Container.DataItem)%>"><a href='<%# ((SiteMapNode)Container.DataItem).Url %>'><%# ((SiteMapNode)Container.DataItem).Title %></a></li>
</ItemTemplate>
</asp:Repeater>
</ul>

View 1 Replies

AJAX :: Implement Show Hide Feature For TextBox Inside Login Control

May 7, 2015

I see an example on the ASP snippets but can it be done using the supplied Login control template.

View 1 Replies

Web Forms :: Hide Some Menu Items For Non Logged In Users In Menu Control

Apr 8, 2013

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 Replies

Hide The Menu Item On Page Load And Show The Item After The Event Is Triggered?

Mar 24, 2011

I am using aspnet menu control and i want to hide the item initially on page load and show the item after an event is trigger say button lick event Can any one give me an example?

View 6 Replies

JQuery :: Show Login Control In Ligh Box Effect So Its Like If I Open On Login Link Login Control Wil Show And Same Time?

Sep 24, 2010

want to use ligh box effect like i have login control and i want to show login control in ligh box effect so its like if i open on login link login control wil show and same time we can control click anywhere in page ??

View 5 Replies

Web Forms :: Show The Sub Menu When Clicking The Main Menu Link?

Jun 23, 2010

I am using menu control . I want to show the sub menu when clicking the main menu link ?

View 6 Replies

Web Forms :: Why 4.0 Hide Menu While Loading

Feb 10, 2011

today i've seen that in google, the preview of one of my sites it's showing the asp.net-4.0-menu-flow-layout as a list, so the preview is very ugly.

What's the best approach to resolve this little problem and page-loading same issue?

I've to hide menu div by javascript (but when i've to show it?

View 4 Replies

Web Forms :: How To Hide Menu Items

May 11, 2010

How can I hide some items in my menu if you are just a user & only appears if you log in as administrator? I would like to hide the siteadmin. Below is the code:

[Code]....

View 7 Replies

Web Forms :: Asp:Menu Hide And Unhide?

May 23, 2010

I have an application where I am trying to gain as much screen area as possible. Given the following asp:menu from the Site.master can I somehow show/hide it?

[Code]....

View 4 Replies

Web Forms :: Hide Nodes In Menu Control?

Nov 12, 2010

I have the following Menu control:

[Code]....

How do I hide the root node and some other nodes if I do not want it to show on the navigation menu?

View 15 Replies

VS 2005 How To Show The Menu And Sub Menu Only On Click Event

Jul 22, 2010

I am using Asp.net Menu, I want to show the menu and sub menu only on click event. How Can I ?

I tried some links

1. Link1

This one show the menu onclick, but the sub menu visible without clicking ?

View 3 Replies

Styling Menu - Show That All Parent Menu's Are Selected?

Mar 27, 2010

I'm trying to style an asp:Menu, so that when I hover over a child menu, all the parent menu's will have the background mouse over selected colour. (Take a look at the win xp start menu for example, with default theme blue, all parent menu's will be highlighted as blue if a child is selected) At first I thought this was something simple, but after intense researching (google), I am beginning to wonder...

View 3 Replies

Web Forms :: How To Hide Manage SiteMapNode In Menu Control

Feb 5, 2011

How can i have a menu control that Manage SiteMapNode from the menu to hide and Just when admin logged to see it.

[Code]....

View 1 Replies

Web Forms :: Hide The Tags If An Asp:Menu Has No Data To Display?

Mar 9, 2010

I'm using asp:Menu (with the CSS friendly control adapters) for my sites navigation. I have everything displayed the way I want it and it looks great using CSS. However, when my sub category has no links, the asp:Menu is still adding the following HTML markup to the page:

[Code]....

The problem with that is my CSS style gives that a height of 25px. So when I have no navigation links available, my design shows a 25px gap under my main navigation before the content starts.
I thought I could try to solve this on my own but I haven't figured it out yet. There doesn't appear to be an option in asp:Menu to correct that behavior, so I started looking into adding a bit of code to my code behind file and then using Jquery to add a "visibility:hidden" to that <DIV> tag.In my code behind file (for the Master Page that displays the asp:Menu), this is what I'm trying to use:
[Code]....

I thought that would check the subMenu, and if there is no current node available, it would add the <SPAN> markup shown above.Then, on the MasterPage.master, I thought I could use the following Jquery:

[Code]....

I think the Jquery will work once I have the code in the code behind file working correctly. Not sure what I'm doing wrong though, or if I'm going about this the wrong way.

View 2 Replies

Web Forms :: Hide Sub Menu Items Based On Roles?

Jul 23, 2013

I have menu item on which come from website map. I have trimmed the main item of menu based on user roles.

Like i have one menu in which i have 5 reports i want to show 2 reports to agents and 5 reports to admin. how to apply roles on sub menu item.

View 1 Replies

Web Forms :: Hide A Node From Appearing On Menu Not On Breadcrumb (using SqlSiteMapProvider)

Oct 2, 2010

I am using wicked code sqlsitemapprovider and it's VB version. Most of the things are going OK! But when I wanted to hide some of the nodes from appearing on menu while staying shown on sitemappath I cannot figure it out. I tried to change the sqlsitemapprovider code but was unsuccessfull.

[Code]....

and I get this error:

Özel Durum Ayrıntıları: System.IndexOutOfRangeException:
visibleKaynak Hatası:

[Code]....

Kaynak Dosya: D:WebsiteskaihlApp_CodeSqlSiteMapProvider.vb Satır:
156

How can I add this functionality into this system.

View 4 Replies

Forms Data Controls :: Hide A Navigation Menu Item?

Mar 4, 2011

I am Trying to hide Navigation Menu Item on my master page based on a selected item from a Drop Down List on another page. I think i need to use a session to get the pages to communicate, which i can do just fine. Im having a problem putting together the code to actually Hide the link based on the specific answer of the DDL.

View 11 Replies

Web Forms :: Hide Child Menu Node Until User Logs In?

Dec 30, 2010

I am using the default menu bar in visual web developer 2010.I have a Staff Portal item, this has child nodes such as sales, marketing that i would like to keep hidden until the user logs in.I'm using vb.net if that comes into it

View 5 Replies

Web Forms :: Navigation Menu / Login And Add Some Buttons To Navigation Menu

May 19, 2010

I'm developing a Portal to a school

I need to login (ok)

I also need when the login is ok, to add some buttons to navigation menu, taht is created in the Master Page.

Is it possible?, how?

i already handle the page load on the default page.

View 3 Replies

Web Forms :: Hide Menu Control Items Conditionally Based On Roles

Aug 12, 2013

I have written code for menu with web.sitemap and SiteMapDataSource1.I want to hide the admin panel if user has no admin rights.

How there is relation between sitemapdatasource,web.sitemap and menu.

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
<asp:Menu ID="Menu" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal"
OnMenuItemDataBound="OnMenuItemDataBound" onmenuitemclick="Menu_MenuItemClick" Width="100%">
<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="main_menu" />

[Code] .....

View 1 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

Web Forms :: Different Menu For Each User Login?

Jul 15, 2010

Iam thinking about to create a menu using sql database... but for each user login only show menu that they can access...

exp:

i have menu like:

1.Marketting Menu
- Show Data
- Create Report

2.Inventory
-Input Inventory
-Create Report

3.HRD
-Input Employee
-Salary Detail

And I have 2 user A and B

if A login it will only show menu like 1.marketing menu and 2.Inventory and if B login it only show menu for 3.HRD menu.....

how can i accomplish this?... how is the database would be? and how can i create the menu?.

View 4 Replies

Web Forms :: Hide The Homepage Login Panel After User Sign In?

Feb 2, 2011

I created a website, i create a Login panel in "Homepage(default.aspx)" using CSS & Serverside control(ASP.NET, C#), my question is when user login into my website, the default.aspx(homepage) login will be disable or hide. is there any way to do this? i used DIV tags to make a panel. do i use PANEL control to group the login panel?

View 4 Replies







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