CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2002
    Posts
    3

    Question getting a particula row's value of a textarea

    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?

  2. #2
    Join Date
    Nov 1999
    Location
    Beijing, P.R.China
    Posts
    115
    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.
    If it helps you, thanks for rating.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured