473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1340
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 against the active directory) But i don't know how...
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 the xml check into that. Am I on the right track?...
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 now already logged on fields are SQL Server...
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 WHERE username = " + tbUser.Text; if (query returns...
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) to manage protected pages. Well, that all works...
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 methods to speed up the checking for duplicates. ...
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. if (-e $filename) { print "File Doesn't...
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 password, comment etc, The problem is that I want...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.