By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,359 Members | 1,481 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,359 IT Pros & Developers. It's quick & easy.

Help validating in business logic layer

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.