473,400 Members | 2,145 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,400 software developers and data experts.

building tree is slow

Max
We want to implement assigning permissions to web pages
using a tree like view. The text below illustrates what
the page would look like. Each of the items in the boxes
are types of permissions (i.e. A = Add, M = Modify). If a
user has permissions the box is green, if not red. When an
administrator clicks the box it changes colors. Also if
you click the boxes on the menu it automatically applies
this to all pages underneath.

Administration Menu |A|M|D|V|P|
Admin Page 1 |A|M|D|V|P|
Admin Page 2 |A|M|D|V|P|
Admin Page 3 |A|M|D|V|P|
Another Menu |A|M|D|V|P|
Another Page 1 |A|M|D|V|P|

The tree is built using three tables that build our menus
and are as follows( only including fields that matter for
discussion):

Menus
Menuid identity
Pages
Pageid identity
PageName nvarchar(100)
MenuItems
MenuItemID identity
Menuid int
Pageid int

Permissions are stored in a table that uses one field for
the permissions.

All of this to say. any ideas on how to do this in .Net.
We have this working in asp but as you might suspect is a
tad slow. We are hoping to find a better way to do this.
In ASP we use VB com components for building the tree
(create html) and java script to change colors of boxes.

Any ideas on a better way to approach the problem would be
great. Thanks!

Jul 19 '05 #1
1 2060
we did something very similar on a project using the microsoft custom
treeview control (.net 1.0 and IE only), and it was pretty straightforward -
loading in large nested trees, each node of which was permissioned, could
take a while, so we 'chunked' our UI display to read only n-nodes deep at a
time. there's a fair number of custom treeview controls on the market now
though - i'd have a look at these.

r.

"Max" <ms*********@comsult.com> wrote in message
news:0d****************************@phx.gbl...
We want to implement assigning permissions to web pages
using a tree like view. The text below illustrates what
the page would look like. Each of the items in the boxes
are types of permissions (i.e. A = Add, M = Modify). If a
user has permissions the box is green, if not red. When an
administrator clicks the box it changes colors. Also if
you click the boxes on the menu it automatically applies
this to all pages underneath.

Administration Menu |A|M|D|V|P|
Admin Page 1 |A|M|D|V|P|
Admin Page 2 |A|M|D|V|P|
Admin Page 3 |A|M|D|V|P|
Another Menu |A|M|D|V|P|
Another Page 1 |A|M|D|V|P|

The tree is built using three tables that build our menus
and are as follows( only including fields that matter for
discussion):

Menus
Menuid identity
Pages
Pageid identity
PageName nvarchar(100)
MenuItems
MenuItemID identity
Menuid int
Pageid int

Permissions are stored in a table that uses one field for
the permissions.

All of this to say. any ideas on how to do this in .Net.
We have this working in asp but as you might suspect is a
tad slow. We are hoping to find a better way to do this.
In ASP we use VB com components for building the tree
(create html) and java script to change colors of boxes.

Any ideas on a better way to approach the problem would be
great. Thanks!

Jul 19 '05 #2

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

Similar topics

6
by: Sridhar R | last post by:
I am looking for a class browser that has these features. 1. Given a symbol (class, method or function) it should giveback the lineno n source code 2. It should be efficient and quick. I...
4
by: Jerry Khoo | last post by:
Thanks for the answer, and by the way, i would like to know that in C++, how u create a tree using a recursive envronment. It seems that most people used struct to create a node than, using...
4
by: Robin Tucker | last post by:
Hi, I'm currently implementing a database with a tree structure in a table. The nodes in the tree are stored as records with a column called "Parent". The root of the tree has a "NULL" parent....
19
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
4
by: Ken | last post by:
I have a binary tree in VB NET and insertions seem to be slow. The program receives data from one source and inserts it into the tree. The program receives data from another source and...
1
by: Max | last post by:
We want to implement assigning permissions to web pages using a tree like view. The text below illustrates what the page would look like. Each of the items in the boxes are types of permissions...
1
by: David Hirschfield | last post by:
I've written a tree-like data structure that stores arbitrary python objects. The objective was for the tree structure to allow any number of children per node, and any number of root nodes...and...
4
by: Henry | last post by:
Does anybody have a real-world sample of buiding a treeview control using data from database tables? All the sample code I have found either builds the treeview manually or uses a file directory...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.