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".
Code for Searching for Multiple Matches with the MatchCollection Class?
How to Create Files by Using the FileInfo Class?
Code for IP Address Comparison and Conversion in C#?
Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.
how to change password in .net with c # with ado.net and also SQL server 2008 change password
Coding for using Nullable Types in C#?
How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.
I am developing a web application using google map api.I want to update the map inside the div control within update panel. I got other controls updated but map doesn't get updated.I do not not want to update map whenever unnecessary controls are fired at server side.How could it be achieved?
Write a program to count the number of characters, number of words, number of line in file.