How to display gridview data in xml format

Closed
riteshsg Posts 2 Registration date Monday 30 December 2013 Status Member Last seen 24 January 2014 - 24 Jan 2014 à 05:21
 Blocked Profile - 24 Jan 2014 à 10:24
Hello,
I am doing one asp.net application in which I want display grid view data in xml format.
I tried but didn't get....please if anyone have solution reply me



Related:

1 response

Blocked Profile
24 Jan 2014 à 10:24
Hello,
Will you share what you have already attempted?

Here is asp code for my site:

strQRY="SELECT * FROM tblzipcodes;"

RC.open strQRY, CONN
if not RC.EOF then
%>
<?xml version="1.0" encoding="utf-8"?>
<cities>
<%
do while not RC.EOF%>
<city>
<county>
Lake
</county>
<name>
<%=RC(1)%>
</name>
<zip>
<%=RC(2)%>
</zip>
<description>
We are proud to serve the
<%=RC(1)%>
Area (<%=RC(2)%>).
</description>
<subdivision>
<name>
Contact us for a sub division listing!
</name>
</subdivision>
</city>
<%
RC.MOVENEXT
loop%>
</cities>
<%
end if