string[] tokens = text.Split(',');
for (int i = 0; i < tokens.Length; i++)
{
yourListBox.Add(new ListItem(token[i], token[i]));
}
Related Contents:
- Can I automatically increment the file build version when using Visual Studio?
- Finding all positions of substring in a larger string in C#
- How can I strip HTML tags from a string in ASP.NET?
- Convert JSON String to JSON Object c#
- Is String.Contains() faster than String.IndexOf()?
- Visual Studio – Resx File default ‘internal’ to ‘public’
- Project builds but can’t publish
- Top level domain from URL in C#
- Setting the datasource for a Local Report – .NET & Report Viewer
- How to use C# 6 with Web Site project type?
- “Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions” error
- Check if a folder exist in a directory and create them using C#
- How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
- C# string reference type?
- Why Response.Redirect causes System.Threading.ThreadAbortException?
- Converting string to title case
- When is it better to use String.Format vs string concatenation?
- How to get a property value based on the name
- Way to have String.Replace only hit “whole words”
- Convert a list to a string in C#
- How to read an entire file to a string using C#?
- Enabling c# 7 in a asp.net application
- CryptographicException: Padding is invalid and cannot be removed and Validation of viewstate MAC failed
- Parsing Visual Studio Solution files
- How to hide a column (GridView) but still access its value?
- Absolute path back to web-relative path
- How to convert DateTime to/from specific string format (both ways, e.g. given Format is “yyyyMMdd”)?
- Find Nth occurrence of a character in a string
- Visual Studio debugging “quick watch” tool and lambda expressions
- Different LIKE behaviour between my application and the Access query wizard
- How to replace part of string by position?
- jQuery Ajax calls to web service seem to be synchronous
- Queuing in OneWay WCF Messages using Windows Service and SQL Server
- If strings are immutable in .NET, then why does Substring take O(n) time?
- Visual Studio displaying errors even if projects build
- Detecting if a string is all CAPS
- Uniquely Identifying Reference Types in the Debugger
- Printing to a client printer from a web app
- visual studio 2010 conditional references
- Regex to match all us phone number formats
- How do I get the currently loggedin Windows account from an ASP.NET page?
- Loop through all controls on asp.net webpage
- How to define an enum with string value?
- How does Request.IsAuthenticated work?
- How do I loop through rows with a data reader in C#?
- Browser detection
- How to restrict file type in FileUpload control
- Registering an Application to a URI Scheme in windows 10
- How do I force full post-back from a button within an UpdatePanel?
- “Context cannot be used while the model is being created” exception with ASP.NET Identity