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

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

By , 25 Jan 2008
 

<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
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

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questioncan use this code for multiple parentmemberNithing16-Sep-08 21:12 

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

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