1 Replies - 2149 Views - Last Post: 22 December 2008 - 08:06 AM Rate Topic: -----

#1 option.explicit  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-December 08

Inserting, Updating and Deleting data from tables programatically

Post icon  Posted 22 December 2008 - 06:10 AM

I would like to know how to programatically add or update data values to a database with Visual Basic Code in ASP.NET.

I intend to obtain Data values from controls such as Textboxes, Listboxes and Labels...

the code could be like this

Dim MyUserName As String
Dim MyUserLoginLevel As Integer

MyUserName = txtUserName.Text
MyUserLoginLevel = val(txtUserName.Text)

OR

MyUserLoginLevel = val(lstUserLevel.items.value)

INSERT INTO MyTable ???

I would also like to know how to delete from gridview controls using visual basic code

Is This A Good Question/Topic? 0
  • +

Replies To: Inserting, Updating and Deleting data from tables programatically

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1525
  • View blog
  • Posts: 5,961
  • Joined: 21-March 08

Re: Inserting, Updating and Deleting data from tables programatically

Posted 22 December 2008 - 08:06 AM

PsychoCoder created some great ADO.Net tutorials for both C# and VB.Net.

http://www.dreaminco...wtopic32392.htm
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1