By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,377 Members | 3,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,377 IT Pros & Developers. It's quick & easy.

Treeview Menu in asp .net 1.0

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.