What are all the ways to find out types of objects?

Answer Posted / rajesh

We have two ways to find out the type of Object

1)Typeof(obj)
It takes parameter and gives the corresponding
type as return data type

2) GetType()
It gives the current Instance of the object.

Is This Answer Correct ?    27 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Types of object in asp

633


How to find out what version of asp.net I am using on my machine?

579


What symbol specifies the beginning of a query string?

531


What is the life cycle of web page?

521


What's the ASP.Net Application life cycle?

562






Hi this is the coding for adding data in to an xml table i want the coding for update and delete Try Dim emp_xml_doc As New XmlDocument If System.IO.File.Exists(Server.MapPath("emp.xml")) Then emp_xml_doc.Load(Server.MapPath("emp.xml")) Dim myrow_element As XmlElement myrow_element = emp_xml_doc.CreateElement("EmpDetails") Dim str As String str = "" & TxtEmpId.Text & "" & _ "" & TxtName.Text & "" & _ "" & TxtSalary.Text & "" myrow_element.InnerXml = str emp_xml_doc.DocumentElement.AppendChild(myrow_element) emp_xml_doc.Save(Server.MapPath("emp.xml")) Response.Write("Record Saved") Dim ds As New DataSet ds.ReadXml(Server.MapPath("emp.xml")) GridView1.DataSource = ds GridView1.DataBind() Else Response.Write("File does not exist.") End If Catch ex As Exception Response.Write(ex.ToString) End Try *********************** this is the xml file 100 xxx 2000 yyy dddd 77777 rrrr rrrr 6666 qaqa sini 50000 errrrrrrrr rrrrrrrrr 677777 rrr rrr 33

1728


Explain login control and form authentication.

557


What is skin in asp.net?

511


What is difference between mvc and asp.net? : Asp.Net MVC

566


What are the asp.net list controls and difference between them?

512


Define session in asp.net.

557


What is different in .net 1.1 and .net 2.0?

572


What is meant by ispostback in asp net?

538


What is clickid?

551


Is asp.net and .net the same?

514