//Get the data from the form string sFirstName = Request.Form.Get("TextBoxFirstName"); string sLastName = Request.Form.Get("TextBoxLastName"); string sUserName = Request.Form.Get("TextBoxUserName"); string sPassword = Request.Form.Get("TextBoxPassword"); string sEmail = Request.Form.Get("TextBoxEmail"); //see if the user already exists in the database DataTable dt = ds.Tables[0]; string sFilter = "UserName = '" + sUserName + "'"; DataRow[] drOtherUsers = dt.Select(sFilter); if (drOtherUsers.Length > 0) { for (int i=0; i