CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/10/2006 11:28:30 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 60 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
anchara06
Asp.Net User
Disabling/Enabling menu items while using SiteMapDataSource7/10/2006 11:28:30 AM

0/0

Hello,

I would like to learn about disabling or enabling menu items while taking the menu items from a sitemapdatasource. When I was using the menu items module by itself, I coded the program like this;

example;

if (something happens){

      this.Menu1.Items[1].Selectable = false;

         this.Menu1.Items[1].ChildItems[3].Enabled = true;

}

But when I changed the datasource to SiteMapDatasource, I naturally can not disable or enable menu items like the one above. So how can I do the same thing by using the sitemapdatasource ?

 

Thanks..

anchara06

 

 

orzeh
Asp.Net User
Re: Disabling/Enabling menu items while using SiteMapDataSource7/10/2006 1:30:50 PM

0/0

hi!

use Menu Item Data Bound event:

protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
    {
          if( cond )
          {
                this.Menu1.Items[1].Selectable = false;
               this.Menu1.Items[1].ChildItems[3].Enabled = true;
          }
    }

orzeh


code less, think more!
anchara06
Asp.Net User
Re: Disabling/Enabling menu items while using SiteMapDataSource7/11/2006 5:52:27 AM

0/0

But the problem is that the menu has not any items defined in its collection. The data comes from the sitemapdatasource and I have to point to that data source to get that collection. So this did not solve my problem.

Thanks..

orzeh
Asp.Net User
Re: Disabling/Enabling menu items while using SiteMapDataSource7/11/2006 6:47:47 AM

0/0

hi!

DataBound event occurs when your menu is linked to sitemapdatasource, so it should solve your problem.

orzeh


code less, think more!
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Tutorial 3: Master Pages and Site Navigation NET includes the SiteMapDataSource control, which allows us to bind a Web control ... For example, we could add a Menu control to the master page using the ...
Chapter 3: Pages and Design (Part 2 of 2) AddAsLast(DropDownMenu1); // add navigation nodes to create menu items DropDownMenu1. ... for enabling and disabling functionality on a wide-scale basis. ...
InformIT: Microsoft Expression Web Developer's Guide to ASP.NET ... NET application from start to finish using Visual Web Developer 2008, while writing only a very small amount of actual programming code. ...
Build Your Own ASP.NET 2.0 Web Site Using C# & VB, 2nd Edition ... editing, Editing DataList Items and Using Templates-Editing DataList Items and ...... Do While loop, Loops; editing Default.aspx, The Code Editor; enabling ...
ASP.NET UI Control Set Release History: Grid, Editor, Menu, Ajax ... When RadMenu is bound to SiteMapDataSource the menu item corresponding to the ... with enabling / disabling the control when using the SharedCalendar ...
TheMSsForum.com >> Portal Server >> Sharepoint and Softgrid - The ... I want one of the menu items to contain a submenu, which contains all of ..... I am having a problem using Softgrid sequenced apps to edit Office documents ...
.NET ASP Page 83 - Bytes Site Map Inline Evaluation of a DataBound Value within a Repeater Item Template ยท How to get physical ..... Problems with breadcrumb control using Sitemap datasource ...
DotNetNuke Navigation WebControls Number of mil iseconds to wait until menu is hidden on mouse out. (0 = disable). MouseOverDisplay. Adjusts ef ect when mouse moves over menu bar item ...
Eric Legault My Eggo[FeedShow RSS reader] The SiteMapDataSource object that we are binding to the Menu control .... I think this is a perfect spot to add menu items for specific folders which I ...
Pearson Education - Schools Title: Microsoft Expression Web ... Using ASP.NET Ajax 1.0. Much more... I'll show you how to implement all these features while writing the least amount of code possible, but when code is ...




Search This Site:










response.redirect & popup killers

two-way databinding in composite control

is it possible to use activedirectorymembershipprovider and sqlmembershipprovider in single aplication

questions about login controls

static html page access control

data convert to number or currency

why my form authentication does not resist anonymous access?

logout error

user authorization - newbie

club site starter kit

upgrade 03.01.00 - 03.01.01 fails?

security - encrypting ss#

prevent downloading files

install file vsi

custom control with two data sources

different data for different users

error loading module - need help.

please help: web user controls loading each other.

data formatting expression

master page with unequal number of contentplaceholders.

images rendering as relative paths on dnn 3.0.12

is it possible to create cross-relationships between tabs?

how to configure web.config for database

back button with viewstate("urlreferrer") and multiple pages.

paypal features in commerce starter

will vs.net 2005 include objectspaces

regular expression

injecting javascript file into masterpage

cross-browser capabilities of the menu control

installation issue :(

 
All Times Are GMT