borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (i cat insert data into the database)Next Topic (run .exe) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : database connection
Poster Message
violet
Level: Scholar

Registered: 08-07-2005
Posts: 38

icon database connection


Hi all

iam using ASP.NET

i connected the database to SQL through codings without using Wizards ... i need to insert , update,delete the data from the textbox through Coding....

hope all can understand.

advance thanks

violet

14-10-2005 at 12:37 PM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: database connection

Check this out if it helps.. http://aspnet.4guysfromrolla.com/articles/072705-1.aspx

____________________________
Im JAMES  

20-10-2005 at 08:08 AM
View Profile Send Email to User Show All Posts | Quote Reply
violet
Level: Scholar

Registered: 08-07-2005
Posts: 38
icon Re: database connection


hi

thanks a lot..

now adding, deleteing..is  working but edit.not working...

let me see..

violet

21-10-2005 at 09:18 AM
View Profile Send Email to User Show All Posts | Quote Reply
Chris_871
Level: Master


Registered: 30-11-2002
Posts: 106
icon Re: database connection

Hi

To update a table , you have to pass the commandtext and then use ExecuteNonQuery().

Here is the sample piece of code.


commandobject.CommandText = "update mShipper set cnno = cnno+1 where shippercode = '2005'"
adapterobject.UpdateCommand = dbconn.VBC_comm
commandobject.ExecuteNonQuery()

Note : You mush create connection object , command and adapter object.

Regards
Chris

29-10-2005 at 10:57 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ASP.Net : database connection
Previous Topic (i cat insert data into the database)Next Topic (run .exe) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder