How to Create a Treeview Menu in ASP.NET with C#?
Answer / guest
Microsoft.Web.UI.WebControls.TreeView Treeview11
public void PopulateTree()
{
TreeNode nodeProdDetail, nodeProdMaster;
nodeProdMaster = new TreeNode();
nodeProdMaster.Text = "Master1";
nodeProdMaster.ID = "1";
nodeProdDetail = new TreeNode();
nodeProdDetail.Text = "Detail1";
nodeProdDetail.ID = "1.1";
nodeProdDetail.NavigateUrl = "SomePage.aspx";
nodeProdMaster.Nodes.Add(nodeProdDetail);
Treeview1.Nodes.Add(nodeProdMaster);
nodeProdMaster = new TreeNode();
nodeProdMaster.Text = "Master2";
nodeProdMaster.ID = "2";
nodeProdDetail = new TreeNode();
nodeProdDetail.Text = "Detail2";
nodeProdDetail.ID = "2.1";
nodeProdDetail.NavigateUrl = "SomeOtherPage.aspx";
nodeProdMaster.Nodes.Add(nodeProdDetail);
Treeview1.Nodes.Add(nodeProdMaster);
}
Is This Answer Correct ? | 25 Yes | 22 No |
How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
Code for Searching for Multiple Matches with the MatchCollection Class?
Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long
Code for Reading and writing from a file in c#?
Coding for Manipulate XML File Data Using C#?
how can i split sting in textbox in windows application using c# .net
how to get the table names via c sharp and column names also?
Write a program to convert postfix expression to infix expression.
Code for Working with Files under a Directory?
program to check if a number is "perfect number".