multi-line text field in dataset passed to web services

Discussion in 'ASP .Net Web Services' started by tms@tms.com, Mar 3, 2004.

  1. Guest

    Hi everyone

    I'm having a problem with passing a dataset with a text field in one of the tables contaning multiple lines separated by \r\n to the ASP.NET web services and back. The \r\n charachters get replaced with the single space. This does not happen for the regular string parameters, only for the fields in the dataset. After a few days of research I found that it happens on extraction of the dataset from the SOAP envelop. XmlReader in the call to ReadXmlSerializable of my strongly typed dataset comes with the \r\n charachters stripped off, but raw SOAL message has them intact. Any idea of how I can make it work? I don't want to encode this string before updating it in dataset since it will require special handling of binding in asp.net web form, and I won't be able to use data adapter to update database without some weird logic in the stored procedure..

    Thank you in advance for your help
    Alex.
    , Mar 3, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dee
    Replies:
    9
    Views:
    507
    Joseph Byrns
    Apr 15, 2005
  2. Replies:
    0
    Views:
    432
  3. Anand
    Replies:
    2
    Views:
    898
    Anand
    Sep 11, 2003
  4. kaushikshome
    Replies:
    4
    Views:
    762
    kaushikshome
    Sep 10, 2006
  5. bernadou

    Force multi line field value to output with line breaks?

    bernadou, Jan 22, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    358
    bernadou
    Jan 23, 2006
Loading...

Share This Page