Click here to Skip to main content
16,019,876 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: TextBox Onblur Pin
aaraaayen31-Oct-06 19:10
aaraaayen31-Oct-06 19:10 
GeneralRe: TextBox Onblur Pin
_AK_31-Oct-06 19:13
_AK_31-Oct-06 19:13 
GeneralRe: TextBox Onblur Pin
aaraaayen31-Oct-06 19:16
aaraaayen31-Oct-06 19:16 
GeneralRe: TextBox Onblur Pin
_AK_31-Oct-06 19:22
_AK_31-Oct-06 19:22 
GeneralRe: TextBox Onblur Pin
aaraaayen31-Oct-06 19:32
aaraaayen31-Oct-06 19:32 
GeneralRe: TextBox Onblur Pin
_AK_31-Oct-06 19:37
_AK_31-Oct-06 19:37 
GeneralRe: TextBox Onblur Pin
P A N K A J31-Oct-06 22:36
P A N K A J31-Oct-06 22:36 
QuestionHierarchy in Treeview Pin
dj.rock31-Oct-06 17:50
dj.rock31-Oct-06 17:50 
Hi guys

I am stuck in one problem. I have table called folder. in that i am storing information of all folders that are made by users. i have one field in this table called parentfolderid. so by that i can store parent folder's id in my table so that i can have hierarchy of folders.

Now my problem is that there can be sub folders in the folder so by following code i get value upto second level but if there is hierarchy like

Root folder --> parent folder --> child folder --> grand child folder

Then it will not handle in my code so if any one can help me i would be very pleased.

--------CODE---------
Try
dr = temp.ExecuteDataReader("Select * from Folder where ID = ParentFolderID")
While dr.Read
Dim tNode As New TreeNode
tNode.Text = dr("Name")
Root = dr("ID")
Tree1.Nodes.Add(tNode)
Try
dr1 = dbaccess.ExecuteDataReader("Select * from Folder where ID <> ParentFolderID and ParentFolderID = '" & Root.ToString & "'")
While dr1.Read
Dim tChileNode1 As New TreeNode()
tChileNode1.Text = dr1("Name")
tNode.ChildNodes.Add(tChileNode1)
End While
Catch ex As Exception

Finally
dr1.Close()
End Try
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
dr.Close()
End Try


Please help meFrown | :(
Questionhi Pin
prameelapydi31-Oct-06 16:38
prameelapydi31-Oct-06 16:38 
AnswerRe: hi Pin
_AK_31-Oct-06 17:30
_AK_31-Oct-06 17:30 
AnswerRe: hi Pin
just3ala231-Oct-06 20:36
just3ala231-Oct-06 20:36 
AnswerRe: hi Pin
PavanPareta31-Oct-06 21:41
PavanPareta31-Oct-06 21:41 
AnswerRe: hi Pin
Rahithi1-Nov-06 5:37
Rahithi1-Nov-06 5:37 
QuestionUnusual Map Path Question... Pin
code-frog31-Oct-06 11:46
professionalcode-frog31-Oct-06 11:46 
QuestionAdditional content Pin
whatever10131-Oct-06 10:28
whatever10131-Oct-06 10:28 
QuestionInsert data in database via Visual Studio (VB) [modified] Pin
TazzT31-Oct-06 9:56
TazzT31-Oct-06 9:56 
AnswerRe: Insert data in database via Visual Studio (VB) Pin
_AK_31-Oct-06 17:48
_AK_31-Oct-06 17:48 
QuestionFTPWebRequest issues Pin
rrlevron31-Oct-06 5:23
rrlevron31-Oct-06 5:23 
Questionhow to connect to DB dynamically in ASP .net Pin
Meena T Shivaram31-Oct-06 5:18
Meena T Shivaram31-Oct-06 5:18 
AnswerRe: how to connect to DB dynamically in ASP .net Pin
wEb GuRu...31-Oct-06 5:58
wEb GuRu...31-Oct-06 5:58 
GeneralRe: how to connect to DB dynamically in ASP .net Pin
Meena T Shivaram31-Oct-06 10:28
Meena T Shivaram31-Oct-06 10:28 
Questionbulk update Pin
karanba31-Oct-06 5:08
karanba31-Oct-06 5:08 
AnswerRe: bulk update Pin
just3ala231-Oct-06 20:30
just3ala231-Oct-06 20:30 
QuestionLocking Client Computer through ASP.Net Pin
aseef31-Oct-06 3:50
aseef31-Oct-06 3:50 
QuestionLogin Control and Roles.... Pin
dbrook00731-Oct-06 3:49
dbrook00731-Oct-06 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.