如何在asp.net中查看像MLM代码一样的树 [英] how to view tree like MLM code in asp.net

查看:93
本文介绍了如何在asp.net中查看像MLM代码一样的树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始一个项目是MLM(跨国级营销)。但是,我对树视图有一些疑问。当一个赞助商ID进入两个孩子时,如左侧和右侧一样,我怎样才能在asp.net中查看正确的。

I have start one project is MLM (Multinational Level Marketing). But, i have some query regarding tree view. when one sponsor id enter the two child, like one left side and second right side so, how can i view in asp.net with proper.

推荐答案

1。根据您需要显示的级别创建几行的HTML表格。

2.第一行将有Max(2 ^(No of Rows-1))colspan。

2.中间行将降低colspan(2 ^(行数 - 当前行指数))。

2.最后一行将没有colspan。

3.从上一行移到上一行将有colspan =(2 * level),如下所示。



----------- ---------------------------------

| ........ ............一..................... |

------------------------------------------ -

| ......... B ......... | ......... C ......... .. |

------------------------------------------ -

| .... D .... | .... E ..... | .... F .... | .... G ... ... |

-------------------------------------- ------



4.上述A到G中的每一个都是一个修复控件(网址将根据主动/主动用户进行更改。)

5.创建一种方法,通过在Paramaeter中传递当前用户密钥,为每个节点(AG)设置各自的ID。

6.每次用户调用相同的方法选择具有该节点Id的任何节点。
1. Create a HTML table for few rows as per you need to show the levels.
2. First Row will have Max(2^(No of Rows-1)) colspan.
2. Middle Rows will have colspan reduced from (2^(No of Rows-1-Current Row Index)).
2. Last Row will have No colspan.
3. Move from last to upper row will have colspan=(2 * level) like given below.

--------------------------------------------
|....................A.....................|
--------------------------------------------
|.........B .........|.........C...........|
--------------------------------------------
|....D....|....E.....|....F....|....G......|
--------------------------------------------

4. Each of the above A to G will be a Fix Control (url will be change on basis of Active/Active user.)
5. Create a method to set each node( A-G) with their respective IDs by passing current User Key in the Paramaeter.
6. call the same method each time user select any node with that node Id.


Hi Pinak,



看看这个: http://dotnetprof.blogspot.in/2013/07/draw-hierarchical-tree-in- html-using.html [ ^ ]
Hi Pinak,

Have a look at this: http://dotnetprof.blogspot.in/2013/07/draw-hierarchical-tree-in-html-using.html[^]


这篇关于如何在asp.net中查看像MLM代码一样的树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆