Click to See Complete Forum and Search --> : getting a particula row's value of a textarea


seemab_is_in
July 28th, 2002, 10:10 AM
how to get the value on a particular row in a textarea of asp.net?
like

in a textarea there are following values

codeguru
forums
messages
articles

all are on different lines..now if i want to retreive the text on line 2 ( forums here) ..then how can i do the same in my code..
is there anything like... textarea id .Row(2) or something like that?

manbaum
August 4th, 2002, 08:52 PM
After you get the content of a TextArea, you can do a String.Split() with a delimiter of '\n', then you will get a array of strings, this array can meet your requirement. For more details, search MSDN on String.Split.