Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to suggest possible usernames to the user

How to suggest possible usernames to the user

Scheduled Pinned Locked Moved ASP.NET
databasealgorithmstutorial
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chetan Ranpariya
    wrote on last edited by
    #1

    Hi Friends, I am working on a web application. I have to implement UserRegistration functionality. In that when user clicks on the "Submit" button after filling up all the information in Registration form my code should check for if the given username exists in the database. If it is already in the database then 3 new possible username should be displayed to the user to try with. I have implemented up to the checking in the database and I able to get whether the given username exsists in the database. But I need some kind of logic or algorithm using which I can create new usernames for the user and display choices to the users. Use enters FirstName, LastName and Location in the Registration form which can be consider to generate new usernames. I dont need the code, I just want an overall logic to create for generating usernames. Thank you all in advance.

    Thanks and Regards, Chetan Ranpariya

    N 1 Reply Last reply
    0
    • C Chetan Ranpariya

      Hi Friends, I am working on a web application. I have to implement UserRegistration functionality. In that when user clicks on the "Submit" button after filling up all the information in Registration form my code should check for if the given username exists in the database. If it is already in the database then 3 new possible username should be displayed to the user to try with. I have implemented up to the checking in the database and I able to get whether the given username exsists in the database. But I need some kind of logic or algorithm using which I can create new usernames for the user and display choices to the users. Use enters FirstName, LastName and Location in the Registration form which can be consider to generate new usernames. I dont need the code, I just want an overall logic to create for generating usernames. Thank you all in advance.

      Thanks and Regards, Chetan Ranpariya

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Hi Chetan My suggestion is you can take the other details entered by user like DOB, LastName, FirstName etc and generate a set of possible combinations. Now check these combinations exist in the DB, if not display names to the user. Hope this helps

      Navaneeth My Website

      C 1 Reply Last reply
      0
      • N N a v a n e e t h

        Hi Chetan My suggestion is you can take the other details entered by user like DOB, LastName, FirstName etc and generate a set of possible combinations. Now check these combinations exist in the DB, if not display names to the user. Hope this helps

        Navaneeth My Website

        C Offline
        C Offline
        Chetan Ranpariya
        wrote on last edited by
        #3

        Hey Navneeth, Thank you very much for the reply.

        Thanks and Regards, Chetan Ranpariya

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups