Solved

Looking for a textbox to copy multiple text in

Posted on 2012-04-09
1
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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