Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become an Expert!

Join 244,307 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 784 people online right now. Registration is fast and FREE... Join Now!




Inserting, Updating and Deleting data from tables programatically

 
Reply to this topicStart new topic

Inserting, Updating and Deleting data from tables programatically, Data Management in ASP.NET

option.explicit
22 Dec, 2008 - 05:10 AM
Post #1

New D.I.C Head
*

Joined: 19 Dec, 2008
Posts: 1

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

User is offlineProfile CardPM
+Quote Post


eclipsed4utoo
RE: Inserting, Updating And Deleting Data From Tables Programatically
22 Dec, 2008 - 07:06 AM
Post #2

D.I.C Lover
Group Icon

Joined: 21 Mar, 2008
Posts: 1,170



Thanked: 117 times
Dream Kudos: 125
My Contributions
PsychoCoder created some great ADO.Net tutorials for both C# and VB.Net.

http://www.dreamincode.net/forums/showtopic32392.htm

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 06:52PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month