Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
I am using
;WITH FamilyTree
AS
(
    SELECT *, CAST(NULL AS VARCHAR(500)) AS ParentName, 0 AS Generation
    FROM dbo.TBL_USER_MASTER
    WHERE MCID =@id 
    
    UNION ALL
    
    SELECT Fam.*,FamilyTree.UNAME AS ParentName, Generation + 1
    FROM TBL_USER_MASTER AS Fam
    INNER JOIN FamilyTree
    ON Fam.MCID = FamilyTree.UID
)
SELECT * FROM FamilyTree
 
to binary Structure but how to bind to the TreeView
Posted 24-Jan-13 3:43am
Comments
aspnet_regiis -i at 24-Jan-13 9:48am
   
Heard of ADO.NET ?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

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

  Print Answers RSS
0 OriginalGriff 6,417
1 Sergey Alexandrovich Kryukov 5,344
2 Maciej Los 3,434
3 Peter Leow 3,259
4 DamithSL 2,490


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100