Solved

Creating Arrays

Posted on 2013-12-12
2
336 Views
Last Modified: 2013-12-12
I have a Text box where the user is going to be allowed to enter a string of codes separated by some delimiter and also they can copy and paste a list of codes from the Excel spreadsheet.  See below example.

4263,4250,44490,22243,22245,4265,
4263
4250
29701
1305
11295
30457
90995,70246,12345,45678,95544

I can get the delimited values into an array using the Split Method, but how would I get the list into the same array.    I need to pass the values one at a time to a stored proc.    I cannot change the stored proc to accept a string of codes as it is used by other processes.

Can someone please help me.  

Thanks.
linecodes.jpg
0
Comment
Question by:sherbug1015
2 Comments
 
LVL 27

Accepted Solution

by:
Chinmay Patel earned 500 total points
ID: 39714660
I don't have an IDE right now but you can try to split using newline character \n or can use Environment.Newline and see if it works for you.
0
 

Author Closing Comment

by:sherbug1015
ID: 39714812
I was able to get it to work.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

11 Experts available now in Live!

Get 1:1 Help Now