asp.net - What is the character expression for a new line in C#? -


i've got text box control on page , want people add urls, 1 on each line , split urls array.

so, i'm trying split them on newline character. i've tried:

.split(environment.newline) .split('vbcrlf') .split(vbcrlf) .split((char)environment.newline) 

but no avail. doing wrong?

.split(new []{environment.newline}, stringsplitoptions.none); 

this because environment.newline string, must pass in array of strings, function overload requires, there needs stringsplitoptions value included. can either stringsplitoption.none or stringsplitoption.removeemptyentries.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -