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 |
how can i split sting in textbox in windows application using c# .net
program for straight line(y=mx+c)
write a Program to copy the string using switch case.
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.
how to change password in .net with c # with ado.net and also SQL server 2008 change password
Create a class called Accounts which has data members like ACCOUNT no, Customer name, Account type, Transaction type (d/w), amount, balance D->Deposit W->Withdrawal If transaction type is deposit call the credit(int amount) and update balance in this method. If transaction type is withdraw call debit(int amt) and update balance. Pass the other information like Account no,name,Account Type through constructor. Call the show data method to display the values.
c# code to Count number of 1's in a given range of integer (0 to n)
Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with C#
How to Create Files by Using the FileInfo Class?
How to add a value from textBox over an existing certain column in SQL Server
program to reverse the order of words in a string.
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)