Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hello,
I Have to create an organizational chart using C# in asp.net web site.
In my Sql Server Database, the data will be like this
EMP_ID EMP_Name RM_ID RM_Name JobTitle
1000 Mahesh 1000 Mahesh Chairman
1001 Kishore 1010 Rajesh S1
1002 Ramesh 1010 Rajesh S2
1003 Raghu 1005 Raghav TL
1004 Mani 1005 Raghav TL
1005 Raghav 1009 Rakesh PL
1006 Kiran 1008 Kittu PL
1007 Sankar 1008 Kittu PL
1008 Kittu 1010 Rajesh PM
1009 Rakesh 1010 Rajesh PM
1010 Rajesh 1000 Mahesh CEO

I have to show the above data Using Organizational Chart
Please Help me
Note: I Need Source Code,I should not use any 3rd party DLL



Thanks,
Kishore
Posted
Updated 26-Jul-12 23:25pm
v2

you should use tree view in asp.net like below :

ASP.NET
<asp:treeview id="TreeView2" runat="server" datasourceid="XmlDataSource1" font-names="Tahoma" xmlns:asp="#unknown">
                                                Font-Size="8pt" ImageSet="BulletedList3" LineImagesFolder="/../../TreeLineImages"
                                                SelectedNodeStyle-Font-Bold="true" SelectedNodeStyle-ForeColor="Red" ShowLines="True"
                                                OnSelectedNodeChanged="TreeView2_SelectedNodeChanged" ExpandDepth="1">
                                                <databindings>
                                                    <asp:treenodebinding datamember="Node" textfield="Name" valuefield="ID" />
                                                </databindings>
                                            </asp:treeview>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900