Home  »  Articles  »  C#.Net  »

Access Line By Line Data from a Multi lined TextBox

 Posted By : Manoj SahooPosted Date : 30/10/2010 06:47:23 AM Category : C#.Net Points : 3

Here I place the code to access line by line from a multiline textbox which is entered by user.

protected void Button1_Click(object sender, EventArgs e)
    string[] str = TextBox1.Text.Split('\r');
    for (int i = 0; i < str.Length; i++)
        str[i]=str[i].Replace("\n", "");

No responses found for this thread. Be the first to respond this thread.
Post Reply
Login to post Response.