parsing string in Web textbox

  • Thread starter Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date Start date
N

Nicholas Paldino [.NET/C# MVP]

VMI,

You aren't really going to be able to get this. You don't have any
information in your ASP.NET page about how the textbox was laid out, so you
can't really configure how many lines were being displayed.

Hope this helps.
 
How can I parse the string in a web textbox? In Window, the textbox.Lines
property parses the string in a multi-line textbox and passes it to an
array.
Is this possible with the Web textbox?

Thanks.
 
VMI said:
How can I parse the string in a web textbox? In Window, the textbox.Lines
property parses the string in a multi-line textbox and passes it to an
array.
Is this possible with the Web textbox?

Thanks.
using StringReader.
StringReader reader = new StringReader(txtBox.Text);
for (;;)
{
string line = reader.ReadLine();
if (line == null) break;
...
}
 
Back
Top