Question connect my BLL class?

w.kit

New member
Joined
Apr 6, 2012
Messages
4
Programming Experience
Beginner
i have created n-tier architecture. i created a sql coding in my BLL

Public Function AddUser() As Boolean
Dim strsql As String = "Insert into User (User_ID,User_Password,Position) values " & _
" ('" & Me.User_ID & "','" & Me.User_Password & "','" & Me.Position & "'); "
Dim obj As New clsDB


Return obj.ExecuteNonQuery(strsql)




End Function

The user interface what coding should i write to connect my BLL class?????
username:
password:
position:
add button
 
How do you usually use classes? You create an instance and you call a method. This is no different. In your forms or whatever you create an instance of your BLL class and then call its AddUser method or whatever else.
 
How do you usually use classes? You create an instance and you call a method. This is no different. In your forms or whatever you create an instance of your BLL class and then call its AddUser method or whatever else.

sorry can u show me the code??????

import ISP.BLL

then what should write continue?
 
I don't have to show you because you already know because you just posted it yourself. I said that you need to create an instance of your class and call the appropriate method. Is 'clsDB' not a class? Is ExecuteNonQuery not a method? You are able to to do it there and it's exactly the same thing.
 
Back
Top