By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,855 Members | 865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,855 IT Pros & Developers. It's quick & easy.

Having trouble getting FOR XML AUTO to send to client side script in ASP.Net

P: n/a
I am using SQLXML3 to return me XML formatted result. All the
attributes are double quoted. When I try to response.write it as an
XML data island to the client side like nothing comes over to the
client.

Sample result from SQL server:

<Customers CustomerID="ANATR"><Orders ShipName="Ana Trujillo
Emparedados y helados" ShipCity="México D.F."/><Orders ShipName="Ana
Trujillo Emparedados y helados" ShipCity="México D.F."/><Orders
ShipName="Ana Trujillo Emparedados y helados" ShipCity="México

xml island on the client side :

<xml id="CustSrc">
<% =xmlStr %>
</xml>

I am able to pass the string xmlStr from server side when everything
is single quoted.

Is there anyway I can format the result with C# code? I have been
trying to escape the XML result but no luck...

Please help.
Mason

email:- mh***@aol.com
Nov 11 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.