Click here to Skip to main content
15,949,686 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionConversion Problem Pin
monika_vasvani29-Oct-06 19:52
monika_vasvani29-Oct-06 19:52 
AnswerRe: Conversion Problem Pin
thomas_joyee30-Oct-06 1:12
thomas_joyee30-Oct-06 1:12 
Questionhow to updating datagrid data Pin
guhakaustav29-Oct-06 19:47
guhakaustav29-Oct-06 19:47 
QuestionHow to fix two digit after 'dot' ? Pin
cheeken2u29-Oct-06 19:15
cheeken2u29-Oct-06 19:15 
AnswerRe: How to fix two digit after 'dot' ? Pin
just3ala229-Oct-06 19:48
just3ala229-Oct-06 19:48 
AnswerRe: How to fix two digit after 'dot' ? Pin
greekius29-Oct-06 21:27
greekius29-Oct-06 21:27 
AnswerRe: How to fix two digit after 'dot' ? Pin
cheeken2u29-Oct-06 22:25
cheeken2u29-Oct-06 22:25 
QuestionAdding Data in Treeview from database Pin
dj.rock29-Oct-06 18:54
dj.rock29-Oct-06 18:54 
Hi
i am trying to add data in tree view control from database, I have folders and documents & sub folders in those folders. so i want to show hierarchy of folders in treeview.

my code is as under Here I have table called folder and in this table unique key is ID and parent key is ParentFolderID which reference to Id of the same table so if there are sub folders then ParentFolderId will be parent Folder's ID. So if there is table which is root level then its ParentFolderID will be reference to itself.

Try
RootFolderStr = "Select Name from Folder where ID=ParentFolderID"
dr = temp.ExecuteDataReader(RootFolderStr)
While dr.Read
Root = dr("Name")
tNode.Text = Root
Tree1.Nodes.Add(tNode)
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
dr.Close()
End Try

when i am adding one item it works fine but if there are more items then it returns error

"Index must be within the bounds of the List.Parameter name: index"

So please help if any one knows the answer.
Thanks in advance
AnswerRe: Adding Data in Treeview from database Pin
Abhishek Joshi29-Oct-06 22:13
Abhishek Joshi29-Oct-06 22:13 
GeneralRe: Adding Data in Treeview from database Pin
dj.rock29-Oct-06 23:29
dj.rock29-Oct-06 23:29 
GeneralRe: Adding Data in Treeview from database Pin
Abhishek Joshi29-Oct-06 23:56
Abhishek Joshi29-Oct-06 23:56 
QuestionHow to develop ASP.NET 2.0 Application using Provider Design Pattern Pin
Qayeum29-Oct-06 18:04
Qayeum29-Oct-06 18:04 
QuestionHow to add an "ENTER" into string ? Pin
cheeken2u29-Oct-06 17:09
cheeken2u29-Oct-06 17:09 
AnswerRe: How to add an "ENTER" into string ? Pin
Guffa29-Oct-06 19:09
Guffa29-Oct-06 19:09 
GeneralRe: How to add an "ENTER" into string ? [modified] Pin
sanjivji30-Oct-06 1:50
sanjivji30-Oct-06 1:50 
AnswerRe: How to add an "ENTER" into string ? Pin
Andrei_KS29-Oct-06 20:43
Andrei_KS29-Oct-06 20:43 
AnswerRe: How to add an "ENTER" into string ? Pin
cheeken2u29-Oct-06 21:34
cheeken2u29-Oct-06 21:34 
QuestionSystem.Net.Mail and Web.config - Specifying multiple SMTP servers Pin
Dominic Pettifer29-Oct-06 15:01
Dominic Pettifer29-Oct-06 15:01 
Questionmultiple sesson Pin
dhatchu29-Oct-06 14:19
dhatchu29-Oct-06 14:19 
Questionquestion about web.config in asp.net 2.0 Pin
abstar29-Oct-06 13:37
abstar29-Oct-06 13:37 
AnswerRe: question about web.config in asp.net 2.0 Pin
Akhilesh Yadav29-Oct-06 23:10
Akhilesh Yadav29-Oct-06 23:10 
QuestionCall Postbach Pin
MHASSANF29-Oct-06 5:25
MHASSANF29-Oct-06 5:25 
AnswerRe: Call Postbach Pin
Guffa29-Oct-06 6:30
Guffa29-Oct-06 6:30 
QuestionGridview control Pin
dalbhidebipin29-Oct-06 3:52
dalbhidebipin29-Oct-06 3:52 
QuestionAnnotation Pin
sribachana29-Oct-06 2:14
sribachana29-Oct-06 2:14 

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.