Solved

Creating Arrays

Posted on 2013-12-12
2
345 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
[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
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

626 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