473,379 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Treeview Menu in asp .net 1.0

Hihi,

Currently, had to create a tree view side menu using asp .net 1.0. Had did
some research but didn't find a good artical on it.

There's what i need to do:
Retrieve data from database to form e menu. The menu is dynamic, it will
display different data in e database according to e different login users.

e.g.

[user1]
- [module 1]
- [module 2]
- [module 3]
- [module 4]
- [module 5]

[user2]
- [module 1]
- [module 3]
- [module 4]

[user3]
- [module 4]
- [module 5]

is there any reco on good articals i can refer to, or a good control i could
use??

Thanx a million :)

RegarDx...
Apr 25 '07 #1
1 2245
What you want to do is to implement a MembershipProvider and a RoleProvider.
The MembershipProvider allows you to work with individual users and set
permissions on each user. The RoleProvider allows you to implement Role
Groups, and set permissions on each Role. By combining them, you have
individual user accounts that belong to Roles, and you use the Roles or the
individual users for authentication. The ASP.Net 2.0 Menu and TreeView
Controls can work with this and show or hide menu items based on the
Membership/Role of the user, with very little code. The Membership and
RoleProviders also work on a folder basis, and will not allow prohibited
users to directly navigate to disallowed folders or pages. Here are some
resources to help get you started:

http://www.odetocode.com/Articles/427.aspx
http://www.odetocode.com/Articles/428.aspx
http://msdn2.microsoft.com/en-us/library/f1kyba5e.aspx
http://msdn2.microsoft.com/en-us/lib...74(VS.80).aspx

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"siLver" <si****@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
Hihi,

Currently, had to create a tree view side menu using asp .net 1.0. Had did
some research but didn't find a good artical on it.

There's what i need to do:
Retrieve data from database to form e menu. The menu is dynamic, it will
display different data in e database according to e different login users.

e.g.

[user1]
- [module 1]
- [module 2]
- [module 3]
- [module 4]
- [module 5]

[user2]
- [module 1]
- [module 3]
- [module 4]

[user3]
- [module 4]
- [module 5]

is there any reco on good articals i can refer to, or a good control i
could
use??

Thanx a million :)

RegarDx...

Apr 25 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve | last post by:
Visual Studio 2003 .NET / C# I have a treeview object on a form which acts as the main menu controller for my application. the treeview is always in sight, and the form it is on acts as the...
4
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with...
1
by: Shailendra Batham | last post by:
Hey guys I am using the IE Web controls treeview control. I popuplate the treeview with XML and it looks fine........... my question is how can I add a right click popup menu to the treeview...
3
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
2
by: Bernie Yaeger | last post by:
I have an mdi app that has a main menu on the parent form. I would like to use a treeview in place of one of the menu options, so that instead of a menu option - say, 'reports' - it would have...
5
by: A-PK | last post by:
Hi, I am using treeview as my menu. my menu is like the following + Users & Groups - Users -Groups + Departmenuts - Engineering
4
by: Andrew Robinson | last post by:
I am using a TreeView to perform navigation and have a few nodes that need to generate a popup menu. For this, I use the SelectedNodeChanged event and then add the relevant "window.open" script to...
0
by: noneya22 | last post by:
I want to use a TreeView control as a one-level, vertical navigation menu. I'm using this control currently with a SiteMapDataSource and .sitemap file. I've written code that associates an image...
0
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. ...
1
by: Mike | last post by:
Here is my scenario. I just took over an existing asp site that is using a treeview menu on the pages. The treeview is an include file that is an include that is on every page. The issue is, when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.