Click here to Skip to main content
Licence CPOL
First Posted 25 Jan 2008
Views 8,991
Downloads 34
Bookmarked 9 times

Create Treeview Control with_subnode using ASP.NET1.1 and Sql Server 2000

By | 25 Jan 2008 | Article
Create Treeview Control with_subnode and binding data from Sql Server 2000 using ASP.NET1.1

<pre>Please Download zip file and use it ( full code )
           
if(tdCount == 0 )

{

s.Append("<TABLE><TR width='100%'><TD vAlign='middle' width='18'>");

s.Append("<IMG src='text.gif'></TD><TD>");

s.Append("<a href=\"nextPage.aspx\">");

s.Append(tdName);

s.Append("</a></TD></TR></TABLE>\r"); 

}

else

{

s.Append("<TABLE><TR width='100%'><TD vAlign='middle' width='18'>");

s.Append("<a id='"+ tdid +"' href=\"javascript:Toggle('"+tdid+"')\">");

s.Append("<img src='minus.gif' width='16' height='16' hspace='0' vspace='0' border='0'></a>\r");

s.Append("</TD><TD><P>"+ tdName +"</P></TD></TR>\r");

s.Append("<TR onfocus= document.getElementById('x"+tdid+"').style.display='block'; id=\"x"+ tdid +"\"><TD vAlign='top' width='18'></TD><TD vAlign='middle'>\r");



foreach (DataRowView dataRowc in dvc)

{

string tdNamec = dataRowc.Row.ItemArray[1].ToString();

s.Append("<TABLE><TR width='100%'><TD vAlign='middle' width='18'>");

s.Append("<IMG src='text.gif'></TD><TD>"); 

s.Append("<a href=\"nextPage.aspx\">");

s.Append(tdNamec);

s.Append("</a></TD></TR></TABLE>\r");

}



s.Append("</TD></TR></TABLE>\r"); 

}
        

License

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

About the Author

AMVenis

Software Developer

India India

Member

A.M.Venis
MCAD (Microsoft Certified Application Developer) Certified in .Net Framework with C#

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Questioncan use this code for multiple parent PinmemberNithing21:12 16 Sep '08  

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

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 25 Jan 2008
Article Copyright 2008 by AMVenis
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid