Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 595507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:04:11+00:00 2026-05-13T16:04:11+00:00

How-to build tagging system like SO ? I’m using a unique textbox on my

  • 0

How-to build tagging system like SO ?

I’m using a unique textbox on my asp.net mvc website to submit “tags”.

First of all, i tried to split tags with commas “asp.net, c#, sql server”.
It works but if user forgot to seperate tags with commas i’ve a problem to split that string.

“asp.net c# sql server” : sql server should be a single tag, not two “sql” + “server”.

Moreover i “can’t” (he should not take care about this …) ask user to use “-” character to seperate words of the tag : “sql-server”

Someone help ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:04:12+00:00Added an answer on May 13, 2026 at 4:04 pm

    either you match the string for existing tags, so then you can have tags with spaces (assuming you search for the bigger tags first so you find ‘sql server’ before you search for ‘sql’. You could make this more robust by only allowing existing tags to be used, and have a separate mechanism for creating new tags. That way users could easily create tags with spaces, as anything entered in the new tag box would be a single tag like ‘sql server 2005’.

    EDIT:

    Alternatively you could have some special syntax in the tags for creating new ones:

    ‘sql,asp.net,[NEWTAG]sql server,c#’ would use existing tags ‘sql’,’asp.net’,’c#’ and would create a new tag ‘sql server’

    /EDIT

    or you split on spaces and don’t allow tags with spaces

    in your example how do you tell the difference between ‘sql server’ (1 tag) and ‘sql’ ‘server’ (2 tags)?

    if you look on SO the tags are all space separated, so one tag is sql-server.

    As long as you have the tags suggested to them as they are entering them I don’t think this will be a problem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our build is annoyingly slow. It's a Java system built with Ant , and
I build up an array of strings with string[] parts = string.spilt( ); And
I build websites for a small-ish media company. Unfortunately, around 45-50% of our client
My build process consists of Qt's qmake Makefile generator and the typical make utility
Our build process uses Visual Studios 2003 link.exe for linking. On one machine we're
Our build server is taking too long to build one of our C++ projects.
I build and maintain a set of Flash components that is distributed to publishers
I build VBA applications for both Word and Excel, is there any way to
Our build is dog slow. It uses nested gnu makefiles on linux. It creates
The build.xml has a test and a build target. The test target obviously depends

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.