How to display gridview data in xml format

Closed
riteshsg Posts 2 Registration date Monday December 30, 2013 Status Member Last seen January 24, 2014 - Jan 24, 2014 at 05:21 AM
 Blocked Profile - Jan 24, 2014 at 10:24 AM
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
Jan 24, 2014 at 10:24 AM
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


0