Click here to Skip to main content
Click here to Skip to main content

Tagged as

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

, 25 Jan 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

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

Comments and Discussions

 
Questioncan use this code for multiple parent PinmemberNithing16-Sep-08 22:12 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150129.1 | Last Updated 25 Jan 2008
Article Copyright 2008 by AMVenis
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid