467,926 Members | 1,480 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,926 developers. It's quick & easy.

Help validating in business logic layer

I have created a tableadaptor in VWD called
"MemberUsernameTableAdaptor" with a "GetUsername()" method.
The method requires the @username parameter and will then try matching
it up in the username field of a table. As the usernames are all
unique, if the username exists a 1 row dataset will be returned, if not
the dataset will be empty.

Now I want to use the DAL above to validate a username entered by a
user to see whether it already exists or not. It could be in the form
of a function which simply takes the parameter, checks whether a
username exists or not and then returns true or false.

I want to write the code for this validation in a business logic layer
..vb class. But I don't know how, as I am confused about the syntax.
This is my first time in trying to write code in a 3 layered structure.

Can somebody help?

Nov 19 '05 #1
  • viewed: 988

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Simon Harvey | last post: by
7 posts views Thread by Jack Addington | last post: by
25 posts views Thread by Stuart Hilditch | last post: by
16 posts views Thread by MS newsgroup | last post: by
5 posts views Thread by Burt | last post: by
2 posts views Thread by Chris Zopers | last post: by
2 posts views Thread by hardieca | last post: by
9 posts views Thread by SAL | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.