| Get text from multiline textbox line by line?
Below is the syntax to get the multiline textbox line by line through code:-
String textlines=txtBox1.Text.Split('\n');
foreach(String line in textlines)
or
var textLines = myTextbox.Text.Split('\n');
foreach( var line in textLines ) | | |