GeekInterview.com
Series: Subject: Topic:
Question: 49 of 73

1)What is the difference between vb and vb.net ?
2)How to insert row by row data in datagrid ?
3) How to work with repeater controls and give small example program ?

Asked by: Interview Candidate | Asked on: Aug 10th, 2006
Showing Answers 1 - 9 of 9 Answers
pappettanus

Answered On : Aug 11th, 2006

vb is object based and vb.net is object oriented.In VB.net ,oops concept is used.

  
Login to rate this answer.
Mamata Kalbande

Answered On : Aug 17th, 2006

1) VB.net is object oriented.

2) VB.net supports exception handling.

3) VB.net is strongly typed.

4) VB. net supports multithreading.

5) VB.net now has console applications.

  
Login to rate this answer.
R Krishna Prasadh

Answered On : Aug 20th, 2006

1.   Visual Basic.NET is object oriented but VB 6 is not so.

2.   Visual Basic.NET supports multi threading but VB doesnt support.

3.   Visual basic.NET supports Managed Code extensions but VB doesnt support.

4.   Both Vb and VB.NET support command line programs.

5.   Both VB and VB.NET support COM and COM+ applications.

6.   VB.NET is strongly typed but VB is not so.

  
Login to rate this answer.
sirishagajula

Answered On : Aug 26th, 2006

VB:* object based language* does not support inheritance* does not support for disconnected architechture* no interoperability function* no support for threading* no powerful exceptional handling mechanism* does not support console based applications* cannot use more than one version of com objects,this is dll error* does not support threadingVB.NET:* object oriented language* supports inheritance* supports disconnected data architechture* it supports interoperability* uses managed code* supports threading* provides access to third party controls like com,dcom* powerful exceptional handling* having support for the console based applications* more than one version of dll is supported

  
Login to rate this answer.
vipan sabherwal

Answered On : Sep 1st, 2006

vb.net is fully object orientated,high security,used in mobile application.

  
Login to rate this answer.
suhail

Answered On : Oct 14th, 2006

Dim cn As SqlConnection
    Dim cmd As SqlCommand
    Dim dr As SqlDataReader
    Dim table As New DataTable

constructor

initialze the cn object like eg

cn = new sqlconnection("server=name;database=name;uid=name;pwd=name;")

write it in the button .click event that add the table dynamicaaly created to datagrid

  Try
            cmd = New SqlCommand
            cmd.CommandType = CommandType.Text
            cmd.Connection = cn
            cmd.CommandText = "select * from manas"
            cn.Open()
            dr = cmd.ExecuteReader()
            Dim i As Integer
            For i = 0 To dr.FieldCount - 1
                table.Columns.Add(i)
            Next
            Dim row As DataRow
            While dr.Read()
                row = table.NewRow()
                For i = 0 To dr.FieldCount - 1
                    row(i) = dr(i)
                Next
                table.Rows.Add(row)
            End While
            DataGrid1.DataSource = table
        Catch ex As Exception
            MsgBox(ex.Message & ex.StackTrace)
        Finally
            cn.Close()
            dr.Close()
        End Try

Yes  1 User has rated as useful.
  
Login to rate this answer.
kodeswaran

Answered On : Feb 15th, 2007

I want know what is the diff b/w VB and VB.NET

  
Login to rate this answer.
sumanth gowda

Answered On : Nov 29th, 2011

VB.Net its purely object oriented language, but not VB
VB.Net it support multi-threading, but VB not so
both VB VB.Net support command line prog.
both support COM COM++
Main thing is VB.Net is strong typed, VB is not so .

For grid, I think just drag from tool box, and make the arrangements in your way, mean to say 2 row or column, in the grid box.

  
Login to rate this answer.
Sekhar

Answered On : Feb 5th, 2012

In VB there is no CLR.Vb programs are compiled using VB compiler...
In VB.Net there is a common compiler called as CLR.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.