Dot Net Framework
A)
Write a VB.NET program to generate Sample Tree View control.
Answer :
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
TreeView1.Nodes.Add("Master")
TreeView1.Nodes(0).Nodes.Add("Student Details")
TreeView1.Nodes(0).Nodes.Add("Teacher Details")
TreeView1.Nodes.Add("Examination")
TreeView1.Nodes(1).Nodes.Add("Internal Exam")
TreeView1.Nodes(1).Nodes.Add("External Exam")
TreeView1.Nodes(1).Nodes.Add("Practical Exam")
End Sub
End Class
Output :
B)
Write a Web application in ASP.Net that generates the “IndexOutOfRange”
exception
when a button is clicked. Instead of displaying the above exception, it
redirects
the user to a custom error page. All the above should be done with the trace
for
the page being enabled.
Answer :
Output :
1 comment:
B ka answer nahi dikha raha hai
Post a Comment