Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 14 results for
navigationmenu
- Page 1
Disable/Hide Navigationmenu items of MasterPage
Programming
Web Development
12 Years Ago
by mirzamujib
…my masterpage. Whenever a user logins, the
navigationmenu
should display the menuitems as per the users… permission. eg: i have three
navigationmenu
items i.e. menuitem1, menuitem2, menuitem3. a … nwperm() Dim mymenu As Menu = Master.FindControl("
NavigationMenu
") Dim mymi As MenuItem = mymenu.FindItem("…
Menu Control showing only Root Items, but no child items
Programming
Web Development
12 Years Ago
by teenas
…1px #000; background-image: url(..//Images/Black.png); } .
NavigationMenu
{ font-family: Verdana; font-size: 10pt; color: #…-image: url(..//resource/Orange.png); } .
NavigationMenu
A:link, .
NavigationMenu
A:visited, .
NavigationMenu
A:active { text-decoration: none; color…
Re: Change asp:menuitem properties from other programs
Programming
Web Development
10 Years Ago
by tfj
…="clear hideSkiplink"> <asp:Menu ID="
NavigationMenu
" runat="server" CssClass="menu" EnableViewState… As Object, ByVal e As System.EventArgs) Handles Me.Load
NavigationMenu
.Items.Item(2).Selectable = False End Sub End Class Figure…
Change asp:menuitem properties from other programs
Programming
Web Development
10 Years Ago
by tfj
… put the following statement in the Site.Master.vb Page_Load: `
NavigationMenu
.Items.Item(2).Selectable = False` it works fine. It makes… Login.aspx.vb and CreateAccount.aspx.vb. I realize that
NavigationMenu
is declared in Site.Master and not declared in Login…
Permanent site.master changes for a session
Programming
Web Development
10 Years Ago
by tfj
… great. Dim navMenu As Menu navMenu = CType(Master.FindControl("
NavigationMenu
"), Menu) navMenu.Items.Item(2).Selectable = False So, I…="clear hideSkiplink"> <asp:Menu ID="
NavigationMenu
" runat="server" CssClass="menu" EnableViewState…
Re: Change asp:menuitem properties from other programs
Programming
Web Development
10 Years Ago
by JorgeM
….Load Dim navMenu As Menu navMenu = CType(Master.FindControl("
NavigationMenu
"), Menu) navMenu.Items.Item(2).Selectable = False End Sub…
Changes to Site.Master page do not persist for a session
Programming
Web Development
10 Years Ago
by tfj
…="clear hideSkiplink"> <asp:Menu ID="
NavigationMenu
" runat="server" CssClass="menu" EnableViewState…
Re: Disappearing Variable
Programming
Web Development
11 Years Ago
by nexocentric
… stuff stuff and stuff <<<HTML; $navMenu = new
NavigationMenu
(); I should have written. $addExtraHtml = <<<HTML stuff… stuff and stuff <<<HTML; $navMenu = new
NavigationMenu
(); That one line of white space made ALL the difference…
Re: I can't get StaticSelectedStyle to work for Menu in Master Page
Programming
Web Development
13 Years Ago
by kmorgan
…, EventArgs e) { string path = Request.AppRelativeCurrentExecutionFilePath; foreach (MenuItem item in
NavigationMenu
.Items) { item.Selected = item.NavigateUrl.Equals(path, StringComparison.InvariantCultureIgnoreCase); } } [/CODE…
Re: Disable/Hide Navigationmenu items of MasterPage
Programming
Web Development
12 Years Ago
by catherine sea
On which line of code do you get the error?
Re: Disable/Hide Navigationmenu items of MasterPage
Programming
Web Development
12 Years Ago
by mirzamujib
[QUOTE=catherine sea;1737882]On which line of code do you get the error?[/QUOTE] code written in my class file.
Re: Change asp:menuitem properties from other programs
Programming
Web Development
10 Years Ago
by JorgeM
Even if the control is on the master page, you can access it via pages that reference the master page. See this MSDN article: http://msdn.microsoft.com/en-us/library/xxwa0ff0.aspx You can also expose controls by creating public properties as described in this other asp.net article: http://www.asp.net/web-forms/tutorials/master-pages/interacting-…
Re: Change asp:menuitem properties from other programs
Programming
Web Development
10 Years Ago
by tfj
JorgeM. Fantastic! It works great! Thank you so much! tfj
Re: Permanent site.master changes for a session
Programming
Web Development
10 Years Ago
by taersious
You would need to place this logic in every page which needs this funcionality. A better option would be to move this logic to your Site.Master.vb file and allow the MasterPage to control this funcitonality. This way you would not be repeating the code in each page, which it one of the purposes of having a MagerPage in the first place.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC