i need help to check the avaialbility of username from database. i am developing this website in a .net 3 tier framework. i already search for coides through google but all the codes are in 2 tier based. please help..............
Don't get so hung up on "3 tier" and stuff like that.
You have a very specific problem you are trying to solve so just focus on that alone.
What you need to do is run a query against your database to check if a value exists. That's it.
publicbool UserNameExists( string username )
// Connect to your database...
// Run a query to check if username exists.
// NOTE: Use a paramatarized query.
// Something like: SELECT count(*) FROM [YourUserTable] WHERE [YourUserNameColumn] = @username
I wasn't, now I am, then I won't be anymore.
Last Visit: 31-Dec-99 18:00 Last Update: 17-Apr-14 3:35