how to insert record in database with Textboxes ??? Please help

mkhurram92

Member
Joined
May 27, 2011
Messages
16
Location
Jeddah(KSA)
Programming Experience
1-3
hello all there

i m a new user of VB.net so i m sorry for such type of question
i m using 3 textbox field to insert data in SQL database with BindingNavigatorSaveItem_Click Button. Temporary data is saved in it but when i refresh i will disappear. it is also not saved in database
BindingNavigatorSaveItem_Click code is as under
Me.Validate()
Me.VendorFileBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.ICSysDBDataSet)

Please guide me how i can enter data in database name "VENDORFILE"

thanks
 
You are most likely saving the data successfully and simply looking in the wrong place or at the wrong time. First, test the value returned by UpdateAll. If it's not zero, data is being saved. In that case, follow the first link in my signature to learn how to manage local data files.
 
You are most likely saving the data successfully and simply looking in the wrong place or at the wrong time. First, test the value returned by UpdateAll. If it's not zero, data is being saved. In that case, follow the first link in my signature to learn how to manage local data files.

hey thanks for ur quick reply

yes man u were right.. i was looking some wrong place... ;)
by the way thanks for ur link
 
Last edited:
Back
Top