Urgent please help

d2005

Active member
Joined
Aug 31, 2005
Messages
37
Location
ireland
Programming Experience
Beginner
Basically im trying to call a function
i have no clue how to get it all tied together.

i have a fromnameDB.vb class with this code
VB.NET:
 Public Shared Function adduser(ByVal users As users) 

Dim oSQlconn As SqlConnection = Connection()

Dim cmdUser As New SqlCommand

cmdUser.Connection = oSQlconn

cmdUser.CommandText = "Insert Into tb_user Values('" _

& users.c_user_id & "','" & users.c_user_fname & "','" _

& users.c_user_sname & "','" & users.c_user_house & "','" _

& users.c_user_street & "','" & users.c_user_town & "','" _

& users.c_username_login & "','" & users.c_user_password & "','" _

& users.c_user_email & "')"



End Function

which calls the users.vb class,
i then have my registration form with various text boxes.

how can i use the btn submit to call and add from these textboxes to the database.

thankyou
 
Back
Top