How to use ASP.NET 2.0's TreeView to Display Hierarchical
Data?
Answer / guest
protected void TreeView1_SelectedNodeChanged(object sender,
EventArgs e)
{
Label1.Text = "You Selected " + TreeView1.SelectedNode.Text
+ " category";
}
protected void Page_Load(object sender, EventArgs e)
{
switch (Request.QueryString["id"])
{
case "1":
Label1.Text="You selected ASP.NET category";
break;
case "2":
Label1.Text="You selected Web Services category";
break;
case "3":
Label1.Text="You selected JSP category";
break;
case "4":
Label1.Text="You selected Windows Forms category";
break;
case "5":
Label1.Text="You selected ActiveX category";
break;
case "6":
Label1.Text="You selected Smart Client category";
break;
case "7":
Label1.Text="You selected COM category";
break;
case "8":
Label1.Text="You selected DCOM category";
break;
case "9":
Label1.Text = "You selected Remoting category";
break;
}
}
| Is This Answer Correct ? | 3 Yes | 4 No |
program to check if a number is "perfect number".
program to reverse the order of digits in a given number of any length.
Code for Reading and writing from a file?
Event Handling in C# Triggering a Button
Can you declare an array of mixed Types?
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?
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
how to change password in .net with c # with ado.net and also SQL server 2008 change password
Code for Searching for Multiple Matches with the MatchCollection Class?
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.
How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?
Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.