472,334 Members | 1,533 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,334 software developers and data experts.

Check If Username Exsists

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
Nov 17 '05 #1
1 1299
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.
-----Original Message-----
Hi,

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

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

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

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

Any help appriciated as always.

H
.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christina | last post by:
How can I do a simple asp check to verify if a physical file exsists on the server or not? Christina
0
by: None | last post by:
Hi, I have written a c# code to find the given username and password is correct or not. (i.e the given username and password will be checked...
0
by: Fossie | last post by:
Hi, I need to check that someone signing up is listed in an xml file. I am using a customer membership provider for Access and trying to integrate...
4
by: Simon Gare | last post by:
Hi all, below is an insert statement on an asp page that stores the date and time that a driver logged on, what I need is to check that they are...
2
by: dhyder | last post by:
I'm using ASP.Net 1.1 and C#. Testing DB is currently Access 2003. This is basically my code set-up: string checkUser = "SELECT * FROM customer...
1
uranuskid
by: uranuskid | last post by:
Hey folks, I was hoping someone could help me out with following problem: I want to use vSigup (available free at www.beanbug.net/vScripts.php)...
3
by: Nimion | last post by:
Sorry if I posted in the wrong forum, but since I'm looking at VB code I have a 50/50 chance at being wrong. :) I've been trying a variety of...
1
by: chanshaw | last post by:
Hey I'm trying to see if a file exsists but I'm using windows, I know in Linux you can use -e but that doesn't seem to work for me in windows. ...
3
by: PHPstarter | last post by:
Hiya. I have a script that is run by a <form> which basically allows u to write into inputs the fields username, new username, password, repeat...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.