Solved

Looking for a textbox to copy multiple text in

Posted on 2012-04-09
1
189 Views
Last Modified: 2012-08-13
I have an ASP textbox that user can type a value in it and I use that in a 'where' clause.

They now want to copy/paste multiple values in the textbox: something like:

Value1
Value2
Value3
Value4

I think we need a comma delimited value in between or some kind of a rule, no? but either way, is there a textbox that can do that?
0
Comment
Question by:Camillia
1 Comment
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37824681
make the text box multiline and ask use to enter one value per line.
Then you can have all the values as:-

var arrValues = txtTest.Text.Split(new string[]{Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries);

Open in new window


now you can use arrValues in your where clause.....
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now