Add record to the list
Hi all,I am newbie to dotnet. I have a question in VB.NET. I want to add the record to the already binded list. But I could not able to do it. Can anybody help me on this. Please.
Imports System.Data
Imports System.Data.SqlClient
Dim sqlcon As New SqlConnection("Data source=PCNAME;Initial catalog=TestNew;Integrated Security=True;")
sqlcon.Open()
Dim sqlcmd As New SqlCommand("Insert into sizee values('" + txtName.Text + "')", sqlcon)
sqlcmd.ExecuteNonQuery()