B
Behzad
Hi.
can anyone help me on this Please?
I have an ASP file like this named as 'somexml.asp':
<%
response.ContentType="text/xml"
dim rst
set rst=Session("someconn").execute("Select * from SomeTable")
Response.write("<?xml version='1.0' encoding='utf-8'?>")
Response.write("<as>")
do while not rst.eof
Response.write("<Name>" & rst.fields(Somefield))
Response.write("</Name>")
rst.movenext
loop
Response.write("</as>")
%>
when i run this page it will produce an xml file;but i the problem is
when iwant to refer to this file in another HTML file with this code:
<html><body>
<xml id="xxx" src="somexml.asp" async="false"></xml>
<table datasrc="#xxx">
<tr>
<td><span datafld="somefld"></span></td></tr>
</table></body></html>
when i set this html file as startup file in IIS it produce an empty
html file.
how can i refere to that asp file.can it be run before the html and
then the html file use its data?
thanx for ur attention.
Behzad
can anyone help me on this Please?
I have an ASP file like this named as 'somexml.asp':
<%
response.ContentType="text/xml"
dim rst
set rst=Session("someconn").execute("Select * from SomeTable")
Response.write("<?xml version='1.0' encoding='utf-8'?>")
Response.write("<as>")
do while not rst.eof
Response.write("<Name>" & rst.fields(Somefield))
Response.write("</Name>")
rst.movenext
loop
Response.write("</as>")
%>
when i run this page it will produce an xml file;but i the problem is
when iwant to refer to this file in another HTML file with this code:
<html><body>
<xml id="xxx" src="somexml.asp" async="false"></xml>
<table datasrc="#xxx">
<tr>
<td><span datafld="somefld"></span></td></tr>
</table></body></html>
when i set this html file as startup file in IIS it produce an empty
html file.
how can i refere to that asp file.can it be run before the html and
then the html file use its data?
thanx for ur attention.
Behzad