Check If Username Exsists

  • Thread starter Thread starter Harry
  • Start date Start date
H

Harry

Hi,

just getting started on ASP.NET and C# and MS-SQL.

Ive managed to get all the connections working and database
intergrated nicely for content and stuff.

I now want to include a user registration form through a 4 step
process asking for various bits of info. I think I can get the data
passed one page to the next and then into the database when the user
presses confirm/register.

Problem I have is, how do I get the form to check the database to see
if the username already exsists ?

Any help appriciated as always.

H
 
Be carefull not to confuse ASP.NET with traditional ASP.
In asp.net you don't need 4 separated pages, but only 1
web form and multiple panels that represent your
registration steps. This is the easiest way to do it.
Using 4 webform require passing data accross them, and
these are complications that you don't need (I'm not
saying is not possible, I'm just trying to avoid you
writting unnecesary code).

The right way to do the username validation, is to use a
CustomValidator control pointed to the control where the
user types the username.
 
Back
Top