web services - DynamicPopulateExtender ,TextArea and line feeds -


i have in page :

<textarea id="taeditablecontent" runat="server" rows="5"></textarea> <ajaxtoolkit:dynamicpopulateextender id="dpeeditpopulate" runat="server" targetcontrolid="taeditablecontent"         clearcontentsduringupdate="true" populatetriggercontrolid="hlink" servicepath="/content.asmx"         servicemethod="editcontent" contextkey='<%=contextkey %>' /> 

basically, dynamicpopulateextender fills contents of textarea webservice. problem is, no matter how return line breaks, text in text area have no line feeds.

if return newlines "br/" entire text area remains empty. if return new lines "/r/n" , text 1 continous line. webservice returns string correctly:

<?xml version="1.0" encoding="utf-8"?> <string xmlns="http://rprealm.com/">first line   third line fourth line</string> 

but in text area :

first line third line fourth line 

the problem white space ignored default when xml processed. try add xml:space="preserve" attribute string element. you'll need define xml prefix xmlns:xml="http://www.w3.org/xml/1998/namespace".


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -